Skip to content

Summarise a new token's control rules before signing a contract create or update #6079

Open

Description

@QuantumExplorer

Problem

When a contract create or update adds a token, the signer is not told who will control it. The Update Contract screen in the iOS example app (#6053) lists a new token only by its position, and the Settings transition builder and the Kotlin screen show nothing at all. A token definition can name a third party as the one allowed to mint, burn, freeze, or change its rules, with no further approval from the owner.

Proposal

Have rs-platform-wallet summarise the effective authority of each control rule of a new or changed token: the action takers (owner, identity, or group with member weights and threshold) and the admin action takers, covering manual minting, burning, freezing, unfreezing, destroying frozen funds, emergency actions, distribution and the rule-change rules. Return the summary with contract create and update previews, and show it before signing in iOS, Android and the builder. A minting-only summary would understate who controls the token.

Context

Raised in review of #6053 and deferred there: the preview reports what differs from the live contract, and an added token is new in full, with its definition in the tokens field the owner reviews.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions