/subscan-multisig-ui

Primary LanguageVueApache License 2.0Apache-2.0

This repo is deprecated and replaced by a React implementation grants_badge

Subscan Multisig UI

License: GPL

Subscan Multisig UI is a web Multisignature management tool. It's developed by the Subscan team. Developers are free to use the codebase to extend functionalities and develop unique user experiences for their audiences.

The backend project stores historical calls can be found here, and call data retrieved will be parsed and verified on the frontend.

Contents

Feature

  1. Create multi-signature account and send extrinsic
  2. Manage multi-signature wallets and extrinsic
  3. Support multiple networks that are based on Substrate development
  4. User-friendly UI

Tutorial

Presquises

1.Install chrome extension polkadot.js

This application will not save your account's private key. All extrinsics initiated will be signed through the polkadot.js extension. Make sure you have installed the polkadot.js extension and created an account in it.

Download link

2.Authorize chrome extension polkadot.js

If you have installed the polkadot.js extension, you will be automatically connected when you enter the page. Please authorize SUBSCAN_Multisig access.

Manage multi-sig accounts

1.Create/Add multi-sig accounts

  • Click "Create Wallet"

  • Fill in the required form data for a multi-sig account. Click "Create" to proceed.

    *Name: The name/label of this multi-signature account. It is stored locally on your computer only.

    *Threshold: The minimum number of approved members required for each extrinsic to be executed. The minimum input value is 2.

    *Members: Participating members of a multi-signature account. The minimum number is 2 and the maximum number is 100.

2.Manage multi-sig accounts

  • View the members of multi-sig account

    Click to show/hide the members of the multi-sig account (include remark name, account, status)

    *Injected account: The account existing in the local polkadot.js extension can be used for signing.

    *External account: The account that does not exist in the local polkadot.js extension and cannot be used for signing.

  • Manage multi-sig accounts

    1. Click to enter multi-sig account details

    2. In the multi-sig account details, click "Settings" to perform operations such as "Rename" and "Delete".

Multi-sig transfer

1.Perform a Multi-sig balance transfer

Click "Initiate extrinsic," enter the transfer parameters, and click "Send" after confirmation.

*Currently, only transfer operations are supported. We will support more types of extrinsic in the second stage.

*The member account that initiates the multi-sig transfer needs to have some tokens balance to pay for the network fees. Otherwise, the extrinsic will fail, and an error of "LiquidityRestrictions" will be raised.

2.Authorize a multi-sig transfer

  • As shown in the figure, a red badge on the button indicates there is at least one pending transaction in this wallet.

  • Click to view the multi-signature account details. After confirming that the extrinsic call data is correct, click "Approve" and approve the extrinsic.

    *For externally initiated extrinsics, call data may not be stored on the chain or in the database. Therefore, in the last "approved" extrinsic, you need to manually fill in the call data.

  • When the number of approvals reaches the threshold, the extrinsic will be executed.

3.Cancel multi-sig transfer

Only the initiator has the authority to cancel the multi-sig extrinsic. Click "Cancel" and sign the extrinsic to cancel.

QuickStart

Requirement

  • Linux / Mac OSX
  • Git
  • yarn / npm
  • Node 8.9.0+

Install

yarn && yarn serve

Test

//unit
yarn test:unit
//e2e
yarn test:e2e

Contributions

We welcome contributions of any kind. Issues labeled can be good (first) contributions.

LICENSE

GPL-3.0

Resource