Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
797b21e
Develop (#120)
vzxh Jan 26, 2022
8204c9f
fix: fix callData args parse error (#124)
vzxh Jan 28, 2022
a7017a0
chore: update subql endpoints (#125)
vzxh Feb 9, 2022
55565b8
Vercel action (#126)
fewensa Feb 14, 2022
bb00ed7
Add cancel record (#128)
vzxh Feb 15, 2022
cfcfd56
chore: refine UI from design (#129)
vzxh Feb 16, 2022
3341477
chore: refine create wallet UI (#130)
vzxh Feb 17, 2022
6a62af6
chore: update global font family (#131)
vzxh Feb 23, 2022
6f402ea
Alias domain for dev and stg deploy (#134)
fewensa Feb 24, 2022
0865d5c
fix: fix address & value params display issue (#132)
vzxh Feb 24, 2022
306572c
feat: support custom rpc endpoint (#133)
vzxh Mar 9, 2022
3934284
feat: query multisig account from subql (#140)
vzxh Mar 10, 2022
21cf97b
chore: refine AddCustomNetworkDialog width (#142)
vzxh Mar 10, 2022
ea67346
Chore/3.10 (#144)
vzxh Mar 10, 2022
3cfc936
fix: copy address content error (#147)
vzxh Mar 10, 2022
dd5a163
fix: fix input call data issue (#150)
vzxh Mar 14, 2022
77c476e
chore: refine app structure, imporve performance (#153)
vzxh Mar 30, 2022
059398a
Chore/3.30 (#154)
vzxh Mar 30, 2022
20ea395
chore: refine actions UI (#156)
vzxh Apr 2, 2022
8320088
chore: update subql endpoints to prd (#158)
vzxh Apr 7, 2022
218be93
Issue 141 (#159)
vzxh Apr 7, 2022
a6910c3
chore: update subql endpoint to testnet (#160)
vzxh Apr 8, 2022
646e003
feat: support import/export multiple wallet accounts (#161)
vzxh Apr 14, 2022
9c5c0af
chore: update readme screenshots (#162)
vzxh Apr 18, 2022
e56d374
feat: add Transfer button for balances transfer (#164)
vzxh Apr 20, 2022
ecd9d82
chore: refine UI when extension not dected or account empty (#165)
vzxh Apr 20, 2022
456eb24
chore: add reserve amount in transfer modal (#166)
vzxh Apr 20, 2022
82d338e
feat: support pagination in extrinsic records (#167)
vzxh Apr 21, 2022
8cc240c
chore: refine args display (#169)
vzxh Apr 22, 2022
ad08d1e
feat: refactor network config, move to json files (#170)
vzxh Apr 25, 2022
4b84363
Refactor network (#176)
vzxh Apr 27, 2022
c7baec5
Issues (#177)
vzxh Apr 27, 2022
a936d83
chore: refine network order (#178)
vzxh Apr 28, 2022
b8f4d86
chore: update README, add chain integration doc (#179)
vzxh Apr 28, 2022
78cb01b
Chore/5.9 (#180)
vzxh May 9, 2022
c0dd20b
fix: value decimal error (#182)
vzxh May 12, 2022
435fcb3
chore: update subquery endpoints (#183)
vzxh May 13, 2022
f70529e
fix: call hash preview mismatch (#185)
vzxh May 16, 2022
f11fdcb
feat: add approve type and timestamp in approve record (#187)
vzxh May 16, 2022
d39ad09
feat: add cancel timepoint in cancelled records (#188)
vzxh May 16, 2022
9bb29db
chore: refine transaction list UI (#189)
vzxh May 17, 2022
35de742
chore: move some subquery projects to darwinia (#190)
vzxh May 24, 2022
84a90e8
fix: interlay ss58Format error (#192)
vzxh Jun 1, 2022
bb17910
chore: add favorite/unfavorite, shareLink icon (#193)
vzxh Jun 21, 2022
740ce26
chore: update README.md (#194)
vzxh Jun 24, 2022
7dd4f95
chore: update README.md (#195)
vzxh Jun 24, 2022
8a61814
Added Interlay and Kintsugi config files and logos (#196)
alexeiZamyatin Sep 2, 2022
f4e0bf0
fix: chain json file error (#197)
vzxh Sep 2, 2022
0bda2da
Update README.md
vzxh Sep 2, 2022
c7367fd
fix: catch queryInfo error (#202)
WoeOm Oct 17, 2022
e1d3a78
fix: polkadot, kusama Weight V2 override (#203)
WoeOm Oct 18, 2022
cc27682
Merge remote-tracking branch 'upstream/master' into sync-fork
adam1985 Oct 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @sxlwar @carlhong
* @sxlwar @carlhong @vzxh
46 changes: 46 additions & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy develop

on:
pull_request:

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v2
with:
repository: itering/actions
path: .github/actions
persist-credentials: false
ssh-key: '${{ secrets.ITERING_ACTIONS_DEPLOY_KEY }}'

- uses: ./.github/actions/smart-vercel
name: Deploy to Vercel
id: smart-vercel
with:
node_version: 14
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_group: itering
preview_output: true
script_install: npm i
script_build: npm run build
alias_domain: multisig-dev

- uses: marocchino/sticky-pull-request-comment@v2
with:
append: true
message: ${{ steps.smart-vercel.outputs.PREVIEW_OUTPUT }}

# - name: Slack Notification
# uses: rtCamp/action-slack-notify@v2
# env:
# SLACK_CHANNEL: subscan-general
# SLACK_COLOR: ${{ job.status }}
# SLACK_ICON: https://avatars.githubusercontent.com/u/14985020?s=48&v=4
# SLACK_MESSAGE: '${{ steps.smart-vercel.outputs.PREVIEW_LINK }}'
# SLACK_TITLE: Preview
# SLACK_USERNAME: Vercel
# SLACK_WEBHOOK: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}
43 changes: 43 additions & 0 deletions .github/workflows/deploy-prd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy production

on:
push:
tags:
- 'v*'

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v2
with:
repository: itering/actions
path: .github/actions
persist-credentials: false
ssh-key: '${{ secrets.ITERING_ACTIONS_DEPLOY_KEY }}'

- uses: ./.github/actions/smart-vercel
name: Deploy to Vercel
id: smart-vercel
with:
node_version: 14
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_group: itering
preview_output: true
prod_mode: true
script_install: npm i
script_build: npm run build

- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: subscan-multisig-notification
SLACK_COLOR: ${{ job.status }}
SLACK_ICON: https://avatars.githubusercontent.com/u/14985020?s=48&v=4
SLACK_MESSAGE: '${{ steps.smart-vercel.outputs.PREVIEW_LINK }}'
SLACK_TITLE: Preview
SLACK_USERNAME: Vercel
SLACK_WEBHOOK: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}
42 changes: 42 additions & 0 deletions .github/workflows/deploy-stg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy staging

on:
push:
branches: [master]

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v2
with:
repository: itering/actions
path: .github/actions
persist-credentials: false
ssh-key: '${{ secrets.ITERING_ACTIONS_DEPLOY_KEY }}'

- uses: ./.github/actions/smart-vercel
name: Deploy to Vercel
id: smart-vercel
with:
node_version: 14
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_group: itering
preview_output: true
script_install: npm i
script_build: npm run build
alias_domain: multisig-staging

- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: subscan-multisig-notification
SLACK_COLOR: ${{ job.status }}
SLACK_ICON: https://avatars.githubusercontent.com/u/14985020?s=48&v=4
SLACK_MESSAGE: '${{ steps.smart-vercel.outputs.PREVIEW_LINK }}'
SLACK_TITLE: Preview
SLACK_USERNAME: Vercel
SLACK_WEBHOOK: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ This is a React-rewrite of previous Vue [implementation](https://github.com/iter

- [Feature](#Feature)
- [Tutorial](#Tutorial)
- [Integration](#Integration)
- [QuickStart](#QuickStart)
- [Requirement](#Requirement)
- [Installation](#Install)
Expand Down Expand Up @@ -152,6 +153,43 @@ Only the initiator has the authority to cancel the multi-sig extrinsic. Click "C
<img src="./docs/12_cancel.png" style="width:800px";>
</p>

## Integration

### Add your own network in supported network list

#### 1.Write your network config file

All networks are configured in `src/config/chains` folder, You can take `polkadot.json` as an exmaple:

```
{
"name": "polkadot",
"displayName": "Polkadot",
"rpc": "wss://rpc.polkadot.io",
// Optional (Delete this line in PR!)
"api": {
"subql": "https://api.subquery.network/sq/itering/multisig_polkadot__aXRlc"
},
"logo": "/image/polkadot-button-mobile.png",
// Optional (Delete this line in PR!)
"explorerHostName": "polkadot",
"themeColor": "#e6007a"
}
```

#### 2.Make a PR to submit your network

After completing the above json config file, you can place it under `src/config/chains`, and submit a PR targeting `master` branch, once it's approved, multisig APP will display your network in the list.

<p align="center">
<img src="./docs/13_select_network.png" style="width:800px";>
</p>

#### 3.Deploy your own subquery endpoint (optional)

In order to support advanced features such as transaction history, you need to deploy your own [subquery](https://doc.subquery.network/) endpoint, and add it to the json file above.
You can fork from the [subscan multisig subquery repo](https://github.com/itering/subql-multisig) and add support for your network.

## QuickStart

### Requirement
Expand Down
28 changes: 28 additions & 0 deletions craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ const lightVars = {
};
const { alias, configPaths } = require('react-app-rewire-alias');

const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');

// just for dev purpose, use to compare vars in different theme.
// fs.writeFileSync('./ant-theme-vars/dark.json', JSON.stringify(darkVars));
// fs.writeFileSync('./ant-theme-vars/light.json', JSON.stringify(lightVars));
Expand Down Expand Up @@ -84,9 +86,35 @@ module.exports = {
webpack: {
plugins: {
add: [themePlugin],
// add: [themePlugin, new BundleAnalyzerPlugin({ analyzerPort: 8919 })],
},
// .
// add mjs compatibility configuration
configure: (webpackConfig) => {
webpackConfig.optimization.splitChunks = {
...webpackConfig.optimization.splitChunks,
chunks: 'all',
minSize: 1000000,
maxSize: 5000000,
cacheGroups: {
vendor: {
test: /[\\/]node_modules[\\/]/,
priority: -10,
name(module) {
// get the name. E.g. node_modules/packageName/not/this/part.js
// or node_modules/packageName
const packageName = module.context.match(/[\\/]node_modules[\\/](.*?)([\\/]|$)/)[1];
// npm package names are URL-safe, but some servers don't like @ symbols
return `npm.${packageName.replace('@', '')}`;
},
},
default: {
minChunks: 2,
priority: -20,
reuseExistingChunk: true,
},
},
};
webpackConfig.module.rules.push({
test: /\.mjs$/,
include: /node_modules/,
Expand Down
Binary file modified docs/10_approve.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/11_progress.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/12_cancel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/13_select_network.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/1_download.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/2_auth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/3_create_wallet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/4_add_members.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/5_view_members.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/6_enter_detail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/7_account_ops.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/8_initial_extrinsic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/9_pending.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/btn_detail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/btn_member.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/btn_pending.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading