-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Set extrinsicHash as optional * ISSUE-39: Fee calculation with withdraw (#42) * Update polkadot api * Check erasStakersClipped exists * Update readme and package name * Set extrinsic hash for stacke change as optional * Fix failed reward destribution handling * Adding GitHub Actions for deploy to staging (#63) * add statemine Signed-off-by: Stepan Lavrentev <lawrentievsv@gmail.com> * fix constraint * ISSUE-51: Assets transfer history * NOVA_3665: switch <action>.multi to multiQuery (#40) * ISSUE-39: Fee calculation with withdraw (#42) * Update polkadot api * Check erasStakersClipped exists * Update readme and package name * Set extrinsic hash as optional * Custom asset transfer * first iteration * fix scripts * fix * fix deploy branch * fix * Transform assetTransfer to jsonfield * upgrade polkadot/api to 7 * fix schema * rename * update workflows * Fix for assettransfer checking * add more networks in list * add tests for promote to prod * add new networks * Fix transfer problem * fix bifrost and karura * Add failed transfer all handlers * add promotion to prod with checks * add more networks * add networks and fix * Don't create receiver history element for transferAll * temporal --force * remove --force * add fix for moonbeam * fix version for moonriver * fix shiden * change acala url * add new networks * Merge pull request #77 from nova-wallet/add-evm-hash-support Add evm hash support * update moonbeam types * kusama rewards fix * Merge pull request #80 from nova-wallet/fix/change-kintsugi-account-type Fix: change kintsugi account type * change some parameters for GHA * Delete robonomics * Improving Usability of Development * Add manual deploy workflow Co-authored-by: asmadek <alma2610@ya.ru> * ISSUE-85: fix extrinsic creation for evm transactions * Add configs for networks * Revert "Add configs for networks" This reverts commit 7cb93e2. * Fuxing problems after first iteration (#87) * update trigger for workflow * add script to update projects description * Fix readme * subsocial types version * turn off auto deployment * Prepare to pull request to deploy branch Co-authored-by: asmadek <alma2610@ya.ru> Co-authored-by: Stepan Lavrentev <40560660+stepanLav@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Stepan Lavrentev <lawrentievsv@gmail.com>
- Loading branch information
1 parent
eacf557
commit 015ad94
Showing
95 changed files
with
1,653 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: Manual deploy to staging | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
networks: | ||
description: 'Which networks will deploy?' | ||
required: true | ||
type: string | ||
|
||
env: | ||
SUBQUERY_CLI_VERSION: 0.2.5 | ||
SUBQUERY_ORG: nova-wallet | ||
INDEXER_IMAGE_VERSION: v0.31.1 | ||
QUERY_IMAGE_VERSION: v0.13.0 | ||
|
||
jobs: | ||
|
||
setup: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
steps: | ||
- id: set-matrix | ||
run: | | ||
list_elements=(${{ github.event.inputs.networks }}) | ||
JSON="{\"include\":[" | ||
for item in ${list_elements[*]} | ||
do | ||
JSONline="{\"chain\": \"$item\"}," | ||
if [[ "$JSON" != *"$JSONline"* ]]; then | ||
JSON="$JSON$JSONline" | ||
fi | ||
echo $item | ||
done <<< "$DIFF" | ||
# Remove last "," and add closing brackets | ||
if [[ $JSON == *, ]]; then | ||
JSON="${JSON%?}" | ||
fi | ||
JSON="$JSON]}" | ||
echo $JSON | ||
echo "::set-output name=matrix::$( echo "$JSON" )" | ||
deploy-subquery: | ||
needs: setup | ||
name: Deploy subquery | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
max-parallel: 5 | ||
matrix: ${{fromJson(needs.setup.outputs.matrix)}} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
mkdir -p $HOME/.local/bin | ||
curl -LO https://github.com/fewensa/subquery-cli/releases/download/v${{ env.SUBQUERY_CLI_VERSION }}/subquery-linux-x86_64.zip | ||
unzip subquery-linux-x86_64.zip -d $HOME/.local/bin/ | ||
rm -rf subquery-linux-x86_64.zip | ||
- name: Get branch name | ||
id: branch-name | ||
uses: tj-actions/branch-names@v5.1 | ||
|
||
- name: Deploy | ||
run: | | ||
subquery --token ${{ secrets.SUBQUERY_TOKEN }} deployment deploy \ | ||
--org ${{ env.SUBQUERY_ORG }} \ | ||
--key nova-wallet-${{ matrix.chain }} \ | ||
--branch deploy \ | ||
--sub-folder ./networks/${{ matrix.chain }} \ | ||
--type stage \ | ||
--indexer-image-version ${{ env.INDEXER_IMAGE_VERSION }} \ | ||
--query-image-version ${{ env.QUERY_IMAGE_VERSION }} \ | ||
--indexer-batch-size 15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Make pull request to deploy branch after push to master | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
create_pull_request: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout to current branch | ||
uses: actions/checkout@master | ||
with: | ||
ref: ${{ github.ref }} | ||
|
||
- name: Prepare brach to commit | ||
run: bash ./scripts/prepare_folders.sh | ||
|
||
- name: Commit files | ||
run: | | ||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
git add -f networks/**/ | ||
git commit -m "Prepare to pull request to deploy branch" | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: refs/heads/update-deploy-${{github.run_number}} | ||
|
||
- uses: repo-sync/pull-request@v2 | ||
name: pull-request | ||
with: | ||
source_branch: "update-deploy-${{github.run_number}}" | ||
destination_branch: "deploy" | ||
pr_title: "Update deploy branch" | ||
pr_body: | | ||
Update deploy branch | ||
pr_reviewer: "stepanLav" | ||
pr_draft: false | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Deploy subquery to stage (without reindex) | ||
|
||
on: | ||
workflow_dispatch | ||
|
||
env: | ||
SUBQUERY_CLI_VERSION: 0.2.5 | ||
SUBQUERY_ORG: nova-wallet | ||
INDEXER_IMAGE_VERSION: v0.31.1 | ||
QUERY_IMAGE_VERSION: v0.13.0 | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- id: set-matrix | ||
run: | | ||
folders=($(ls ./networks)) | ||
JSON="{\"include\":[" | ||
for item in ${folders[*]} | ||
do | ||
JSONline="{\"chain\": \"$item\"}," | ||
if [[ "$JSON" != *"$JSONline"* ]]; then | ||
JSON="$JSON$JSONline" | ||
fi | ||
echo $item | ||
done <<< "$DIFF" | ||
# Remove last "," and add closing brackets | ||
if [[ $JSON == *, ]]; then | ||
JSON="${JSON%?}" | ||
fi | ||
JSON="$JSON]}" | ||
echo $JSON | ||
echo "::set-output name=matrix::$( echo "$JSON" )" | ||
deploy-subquery: | ||
needs: setup | ||
name: Deploy subquery | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
max-parallel: 5 | ||
matrix: ${{fromJson(needs.setup.outputs.matrix)}} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
mkdir -p $HOME/.local/bin | ||
curl -LO https://github.com/fewensa/subquery-cli/releases/download/v${{ env.SUBQUERY_CLI_VERSION }}/subquery-linux-x86_64.zip | ||
unzip subquery-linux-x86_64.zip -d $HOME/.local/bin/ | ||
rm -rf subquery-linux-x86_64.zip | ||
- name: Get branch name | ||
id: branch-name | ||
uses: tj-actions/branch-names@v5.1 | ||
|
||
- name: Deploy | ||
run: | | ||
subquery --token ${{ secrets.SUBQUERY_TOKEN }} deployment deploy \ | ||
--org ${{ env.SUBQUERY_ORG }} \ | ||
--key nova-wallet-${{ matrix.chain }} \ | ||
--branch deploy \ | ||
--sub-folder ./networks/${{ matrix.chain }} \ | ||
--type stage \ | ||
--indexer-image-version ${{ env.INDEXER_IMAGE_VERSION }} \ | ||
--query-image-version ${{ env.QUERY_IMAGE_VERSION }} \ | ||
--indexer-batch-size 15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.