Skip to content

Generated schema for tokenization/approval_tracking.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

ApprovalAmounts

ApprovalAmounts defines approval amounts per unique "from," "to," and/or "initiated by" address.

If any of these are nil or "0", we assume unlimited approvals.

If they are set to a value, then the running tally of the amounts transferred for the specified token IDs and ownership times

must not exceed the corresponding value.

Field#TypeRuleDescription
overallApprovalAmount1stringsingularOverall approval amount.
perToAddressApprovalAmount2stringsingularApproval amount per "to" address.
perFromAddressApprovalAmount3stringsingularApproval amount per "from" address.
perInitiatedByAddressApprovalAmount4stringsingularApproval amount per "initiated by" address.
amountTrackerId6stringsingularThe ID of the amount tracker associated with this approval. We use this ID to track the number of transfers and amounts transferred.
resetTimeIntervals7ResetTimeIntervalssingularTime intervals to reset the trackers at.

ApprovalTracker

ApprovalTracker defines the tracker for approvals. This tracks the cumulative number of transfers and associated balances transferred.

Field#TypeRuleDescription
numTransfers1stringsingularThe number of transfers that have been processed.
amounts2BalancerepeatedCumulative balances associated with the transfers that have been processed.
lastUpdatedAt3stringsingularLast updated at time.

AutoDeletionOptions

AutoDeletionOptions defines the options for auto-deletion of approvals.

Field#TypeRuleDescription
afterOneUse1boolsingularAfter one use?
afterOverallMaxNumTransfers2boolsingularAfter overall max number of uses threshold is met?
allowCounterpartyPurge3boolsingularAllow counterparty to purge this approval if they are the only initiator
allowPurgeIfExpired4boolsingularAllow others to call PurgeApprovals on behalf of this approval owner

MaxNumTransfers

MaxNumTransfers defines the maximum number of transfers per unique "from," "to," and/or "initiated by" address.

If any of these are nil or "0", we assume unlimited approvals.

If they are set to a value, then the running tally of the number of transfers for the specified token IDs and ownership times

must not exceed the corresponding value.

Field#TypeRuleDescription
overallMaxNumTransfers1stringsingularOverall maximum number of transfers.
perToAddressMaxNumTransfers2stringsingularMaximum number of transfers per "to" address.
perFromAddressMaxNumTransfers3stringsingularMaximum number of transfers per "from" address.
perInitiatedByAddressMaxNumTransfers4stringsingularMaximum number of transfers per "initiated by" address.
amountTrackerId6stringsingularThe ID of the amount tracker associated with this approval. We use this ID to track the number of transfers and amounts transferred.
resetTimeIntervals7ResetTimeIntervalssingularTime intervals to reset the trackers at.

ResetTimeIntervals

Time intervals to reset the trackers at.

Field#TypeRuleDescription
startTime1stringsingularOriginal start time of the first interval.
intervalLength2stringsingularInterval length in unix milliseconds.

Edit this page on GitHub