chore: separate running vegawallet service out of vegacapsule (#2095)
This commit is contained in:
parent
52e1757d33
commit
9f4f54af6d
25
.github/actions/setup-vegawallet-docker/action.yml
vendored
Normal file
25
.github/actions/setup-vegawallet-docker/action.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
inputs:
|
||||||
|
passphrase:
|
||||||
|
description: 'Wallet password'
|
||||||
|
runs:
|
||||||
|
using: 'composite'
|
||||||
|
steps:
|
||||||
|
- name: Create passphrase
|
||||||
|
shell: bash
|
||||||
|
run: echo "${{ inputs.passphrase }}" > ./passphrase
|
||||||
|
|
||||||
|
- name: Initialize wallet
|
||||||
|
shell: bash
|
||||||
|
run: vega wallet init -f --home ~/.vegacapsule/testnet/wallet
|
||||||
|
|
||||||
|
- name: Import wallet
|
||||||
|
shell: bash
|
||||||
|
run: vega wallet import -w capsule_wallet --recovery-phrase-file ./frontend-monorepo/vegacapsule/recovery -p ./passphrase --home ~/.vegacapsule/testnet/wallet
|
||||||
|
|
||||||
|
- name: Import network
|
||||||
|
shell: bash
|
||||||
|
run: vega wallet network import --force --from-file ./frontend-monorepo/vegacapsule/wallet-config.toml --home ~/.vegacapsule/testnet/wallet
|
||||||
|
|
||||||
|
- name: Start service using capsule network
|
||||||
|
shell: bash
|
||||||
|
run: vegawallet-dummy service run --network DV --wallet capsule_wallet --passphrase-file ./passphrase --home ~/.vegacapsule/testnet/wallet &
|
14
.github/actions/setup-vegawallet/action.yml
vendored
14
.github/actions/setup-vegawallet/action.yml
vendored
@ -3,9 +3,6 @@ inputs:
|
|||||||
description: 'Recovery phrase'
|
description: 'Recovery phrase'
|
||||||
passphrase:
|
passphrase:
|
||||||
description: 'Wallet password'
|
description: 'Wallet password'
|
||||||
capsule:
|
|
||||||
description: 'Is Capsule network used'
|
|
||||||
default: 'false'
|
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
@ -23,25 +20,16 @@ runs:
|
|||||||
|
|
||||||
- name: Import wallet
|
- name: Import wallet
|
||||||
shell: bash
|
shell: bash
|
||||||
if: ${{ inputs.capsule=='false' }}
|
|
||||||
run: vega wallet import -w UI_Trading_Test --recovery-phrase-file ./recovery -p ./passphrase --home ~/.vegacapsule/testnet/wallet
|
run: vega wallet import -w UI_Trading_Test --recovery-phrase-file ./recovery -p ./passphrase --home ~/.vegacapsule/testnet/wallet
|
||||||
|
|
||||||
- name: Create public key 2
|
- name: Create public key 2
|
||||||
shell: bash
|
shell: bash
|
||||||
if: ${{ inputs.capsule=='false' }}
|
|
||||||
run: vega wallet key generate -w UI_Trading_Test -p ./passphrase --home ~/.vegacapsule/testnet/wallet
|
run: vega wallet key generate -w UI_Trading_Test -p ./passphrase --home ~/.vegacapsule/testnet/wallet
|
||||||
|
|
||||||
- name: Import network
|
- name: Import network
|
||||||
shell: bash
|
shell: bash
|
||||||
if: ${{ inputs.capsule=='false' }}
|
|
||||||
run: vega wallet network import --from-url="https://raw.githubusercontent.com/vegaprotocol/networks-internal/master/stagnet3/stagnet3.toml" --force --home ~/.vegacapsule/testnet/wallet
|
run: vega wallet network import --from-url="https://raw.githubusercontent.com/vegaprotocol/networks-internal/master/stagnet3/stagnet3.toml" --force --home ~/.vegacapsule/testnet/wallet
|
||||||
|
|
||||||
- name: Start service using fairground network
|
- name: Start service using stagnet3 network
|
||||||
shell: bash
|
shell: bash
|
||||||
if: ${{ inputs.capsule=='false' }}
|
|
||||||
run: vegawallet-dummy service run --network stagnet3 --wallet UI_Trading_Test --passphrase-file ./passphrase --home ~/.vegacapsule/testnet/wallet &
|
run: vegawallet-dummy service run --network stagnet3 --wallet UI_Trading_Test --passphrase-file ./passphrase --home ~/.vegacapsule/testnet/wallet &
|
||||||
|
|
||||||
- name: Start service using capsule network
|
|
||||||
shell: bash
|
|
||||||
if: ${{ inputs.capsule=='true' }}
|
|
||||||
run: vegawallet-dummy service run --network DV --wallet capsule_wallet --passphrase-file ./passphrase --home ~/.vegacapsule/testnet/wallet &
|
|
||||||
|
@ -70,7 +70,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
recovery: ${{ secrets.TRADING_TEST_VEGA_WALLET_RECOVERY }}
|
recovery: ${{ secrets.TRADING_TEST_VEGA_WALLET_RECOVERY }}
|
||||||
passphrase: ${{ secrets.CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE }}
|
passphrase: ${{ secrets.CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE }}
|
||||||
capsule: false
|
|
||||||
|
|
||||||
# To make sure that all Cypress binaries are installed properly
|
# To make sure that all Cypress binaries are installed properly
|
||||||
- name: Install cypress bins
|
- name: Install cypress bins
|
||||||
|
6
.github/workflows/cypress-explorer-e2e.yml
vendored
6
.github/workflows/cypress-explorer-e2e.yml
vendored
@ -79,12 +79,10 @@ jobs:
|
|||||||
## Setup a Vega wallet for our user
|
## Setup a Vega wallet for our user
|
||||||
######
|
######
|
||||||
|
|
||||||
- name: Set up Vegawallet
|
- name: Set up Vegawallet for docker
|
||||||
uses: ./frontend-monorepo/.github/actions/setup-vegawallet
|
uses: ./frontend-monorepo/.github/actions/setup-vegawallet-docker
|
||||||
with:
|
with:
|
||||||
recovery: ${{ secrets.TRADING_TEST_VEGA_WALLET_RECOVERY }}
|
|
||||||
passphrase: ${{ secrets.CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE }}
|
passphrase: ${{ secrets.CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE }}
|
||||||
capsule: true
|
|
||||||
|
|
||||||
######
|
######
|
||||||
## Run some tests
|
## Run some tests
|
||||||
|
6
.github/workflows/cypress-token-e2e.yml
vendored
6
.github/workflows/cypress-token-e2e.yml
vendored
@ -75,12 +75,10 @@ jobs:
|
|||||||
## Setup a Vega wallet for our user
|
## Setup a Vega wallet for our user
|
||||||
######
|
######
|
||||||
|
|
||||||
- name: Set up Vegawallet
|
- name: Set up Vegawallet for docker
|
||||||
uses: ./frontend-monorepo/.github/actions/setup-vegawallet
|
uses: ./frontend-monorepo/.github/actions/setup-vegawallet-docker
|
||||||
with:
|
with:
|
||||||
recovery: ${{ secrets.TRADING_TEST_VEGA_WALLET_RECOVERY }}
|
|
||||||
passphrase: ${{ secrets.CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE }}
|
passphrase: ${{ secrets.CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE }}
|
||||||
capsule: true
|
|
||||||
|
|
||||||
######
|
######
|
||||||
## Run some tests
|
## Run some tests
|
||||||
|
1
.github/workflows/cypress-trading-e2e.yml
vendored
1
.github/workflows/cypress-trading-e2e.yml
vendored
@ -71,7 +71,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
recovery: ${{ secrets.TRADING_TEST_VEGA_WALLET_RECOVERY }}
|
recovery: ${{ secrets.TRADING_TEST_VEGA_WALLET_RECOVERY }}
|
||||||
passphrase: ${{ secrets.CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE }}
|
passphrase: ${{ secrets.CYPRESS_TRADING_TEST_VEGA_WALLET_PASSPHRASE }}
|
||||||
capsule: false
|
|
||||||
|
|
||||||
# To make sure that all Cypress binaries are installed properly
|
# To make sure that all Cypress binaries are installed properly
|
||||||
- name: Install cypress bins
|
- name: Install cypress bins
|
||||||
|
@ -17,21 +17,6 @@ network "testnet" {
|
|||||||
EOT
|
EOT
|
||||||
}
|
}
|
||||||
|
|
||||||
wallet "wallet-1" {
|
|
||||||
template = <<-EOT
|
|
||||||
Name = "DV"
|
|
||||||
Level = "info"
|
|
||||||
TokenExpiry = "168h0m0s"
|
|
||||||
Port = 1789
|
|
||||||
Host = "0.0.0.0"
|
|
||||||
|
|
||||||
[API]
|
|
||||||
[API.GRPC]
|
|
||||||
Hosts = [{{range $i, $v := .Validators}}{{if ne $i 0}},{{end}}"127.0.0.1:30{{$i}}2"{{end}}]
|
|
||||||
Retries = 5
|
|
||||||
EOT
|
|
||||||
}
|
|
||||||
|
|
||||||
pre_start {
|
pre_start {
|
||||||
docker_service "ganache-1" {
|
docker_service "ganache-1" {
|
||||||
image = "vegaprotocol/ganache:latest"
|
image = "vegaprotocol/ganache:latest"
|
||||||
|
1
vegacapsule/recovery
Normal file
1
vegacapsule/recovery
Normal file
@ -0,0 +1 @@
|
|||||||
|
ozone access unlock valid olympic save include omit supply green clown session
|
12
vegacapsule/wallet-config.toml
Normal file
12
vegacapsule/wallet-config.toml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
Name = "DV"
|
||||||
|
LogLevel = "info"
|
||||||
|
TokenExpiry = "168h0m0s"
|
||||||
|
Port = 1789
|
||||||
|
Host = "0.0.0.0"
|
||||||
|
|
||||||
|
[API]
|
||||||
|
[API.GRPC]
|
||||||
|
Hosts = ["127.0.0.1:3002", "127.0.0.1:3012", "127.0.0.1:3022", "127.0.0.1:3032"]
|
||||||
|
Retries = 5
|
||||||
|
[API.REST]
|
||||||
|
[API.GraphQL]
|
Loading…
Reference in New Issue
Block a user