diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 17f71fd5..bf87bb7f 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -1 +1 @@
-* @sxlwar @carlhong
+* @sxlwar @carlhong @vzxh
diff --git a/.github/workflows/backup/deploy-dev.yml b/.github/workflows/backup/deploy-dev.yml
new file mode 100644
index 00000000..55384de0
--- /dev/null
+++ b/.github/workflows/backup/deploy-dev.yml
@@ -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 }}
diff --git a/.github/workflows/backup/deploy-stg.yml b/.github/workflows/backup/deploy-stg.yml
new file mode 100644
index 00000000..b72b04cd
--- /dev/null
+++ b/.github/workflows/backup/deploy-stg.yml
@@ -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 }}
diff --git a/.github/workflows/deploy-prd.yml b/.github/workflows/deploy-prd.yml
new file mode 100644
index 00000000..385da42b
--- /dev/null
+++ b/.github/workflows/deploy-prd.yml
@@ -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 }}
diff --git a/.github/workflows/multisig-production-deploy.yml b/.github/workflows/multisig-production-deploy.yml
index 44fc0864..b358caad 100644
--- a/.github/workflows/multisig-production-deploy.yml
+++ b/.github/workflows/multisig-production-deploy.yml
@@ -1,10 +1,13 @@
name: multisig-production-deploy
on:
+ push:
+ branches:
+ - sync-latest-upstream-code
workflow_dispatch:
env:
- AWS_S3_BUCKET_NAME: multisig-production
+ AWS_S3_BUCKET_NAME: parallel-multisig-production
AWS_REGION: us-east-2
AWS_CLOUDFRONT_DISTRIBUTION_ID: EOE2FT3RXE5GE
CLOUDFLARE_PURGE_URLS: '["https://multisig.parallel.fi/"]'
@@ -13,10 +16,10 @@ jobs:
deploy:
name: Deploy to S3
runs-on: ubuntu-latest
- if: |
- github.event.sender.id == 78835349 ||
- github.event.sender.id == 13250462 ||
- github.event.sender.id == 12026976
+ # if: |
+ # github.event.sender.id == 78835349 ||
+ # github.event.sender.id == 13250462 ||
+ # github.event.sender.id == 12026976
# github.event.sender.id=Carlos Yvan Andrew
steps:
- uses: actions/checkout@v2
diff --git a/README.md b/README.md
index c1951de2..76c777d9 100644
--- a/README.md
+++ b/README.md
@@ -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)
@@ -152,6 +153,43 @@ Only the initiator has the authority to cancel the multi-sig extrinsic. Click "C
+
+
-
+
{t('multisig.index')}
@@ -60,73 +81,52 @@ function App() {
- {accuracyFormat(amount, decimal)} {symbol} + {formatBalance(amount, Number(decimal), { + withThousandSplit: true, + noDecimal: false, + decimal: 3, + })}{' '} + {symbol}
); - }); + } + + return null; + + // return tokens.map(({ decimal, symbol }) => { + // let amount = ''; + + // if (symbol.toLocaleLowerCase().includes('kton')) { + // amount = kton; + // } else { + // amount = value; + // } + + // return ( + //+ // {accuracyFormat(amount, decimal)} {symbol} + //
+ // ); + // }); }; export function Wallets() { @@ -60,36 +89,160 @@ export function Wallets() { const [multisigAccounts, setMultisigAccounts] = useState{t('Mulitsig Transaction Details')}
++ {t( + 'Please be sure to double-check the mulitsig transaction progress and parameters carefully before approving.' + )} +
+