Skip to content

parallel-finance/subscan-multisig-react

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grants_badge

Subscan Multisig UI - React

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.

This is a React-rewrite of previous Vue implementation.

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

Prerequisites

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, you can either edit the wallet name or delete the wallet by click the correspond icon.

Multi-sig transfer

1.Perform a Multi-sig balance transfer

Click "Initiate extrinsic," enter the parameters, choose the submission method you want, click the corresponding button to submit

The member account that initiates the multi-sig transfer needs to hold a few token 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 14.15.x

Install

yarn && yarn start:dev

Test

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

Contributions

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

LICENSE

License

Resource

Packages

No packages published

Languages

  • TypeScript 97.7%
  • JavaScript 1.1%
  • Other 1.2%