Skip to content

Generated schema for tokenization/user_balance_store.proto: 1 message in the x/tokenization module.

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

Messages

UserBalanceStore

UserBalanceStore is the store for the user balances for a collection.

It consists of a list of balances, a list of approved outgoing transfers, and a list of approved incoming transfers, as well as the permissions for updating the approved incoming/outgoing transfers.

Upon initialization, all fields (minus the balances) are set to the defaults specified by the collection.

The outgoing transfers can be used to allow / disallow transfers which are sent from this user. If a transfer has no match, then it is disallowed by default, unless from == initiatedBy (i.e. initiated by this user) and autoApproveSelfInitiatedOutgoingTransfers is set to true.

The incoming transfers can be used to allow / disallow transfers which are sent to this user. If a transfer has no match, then it is disallowed by default, unless to == initiatedBy (i.e. initiated by this user) and autoApproveSelfInitiatedIncomingTransfers is set to true.

Note that the user approved transfers are only checked if the collection approved transfers do not specify to override the user approved transfers.

The permissions are used to determine whether the user can update the approved incoming/outgoing transfers and auto approvals.

Field#TypeRuleDescription
balances1BalancerepeatedThe list of balances associated with this user.
outgoingApprovals2UserOutgoingApprovalrepeatedThe list of approved outgoing transfers for this user.
incomingApprovals3UserIncomingApprovalrepeatedThe list of approved incoming transfers for this user.
autoApproveSelfInitiatedOutgoingTransfers4boolsingularWhether to auto-approve self-initiated outgoing transfers for this user (i.e. from == initiatedBy).
autoApproveSelfInitiatedIncomingTransfers5boolsingularWhether to auto-approve self-initiated incoming transfers for this user (i.e. to == initiatedBy).
autoApproveAllIncomingTransfers6boolsingularWhether to auto-approve all incoming transfers by default. This is just shorthand for adding an accept everything incoming approval with no restrictions.
userPermissions7UserPermissionssingularThe permissions for this user's actions and transfers.

Edit this page on GitHub