Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# TODO(ANCHOR-1016): Describe how to fill in these secrets

# Anchor Platform secrets
SECRET_SEP10_SIGNING_SEED=

Expand All @@ -11,11 +9,24 @@ SECRET__KEY=

# Test secrets
TEST_CLIENT_WALLET_SECRET=
TEST_CLIENT_WALLET_PK_BYTES=
TEST_CLIENT_SMART_WALLET_ACCOUNT=
TEST_CLIENT_WALLET_EXTRA_SIGNER_1_SECRET=
TEST_CLIENT_WALLET_EXTRA_SIGNER_2_SECRET=

TEST_WITHDRAW_FUND_CLIENT_SECRET_1=
TEST_WITHDRAW_FUND_CLIENT_SECRET_2=
TEST_DEPOSIT_FUND_CLIENT_SECRET_1=
TEST_DEPOSIT_FUND_CLIENT_SECRET_2=

# Used as a test payment destination with Circle USDC trustline
OTHER_SEP10_SIGNING_SECRET=

# USDC issuer
USDC_ISSUER_SECRET=

# SRT issuer
SRT_ISSUER_SECRET=

# Test Anchor accounts
TESTANCHOR_DISTRIBUTION_SECRET=
TESTANCHOR_RECEIVE_SECRET=
45 changes: 45 additions & 0 deletions .github/workflows/on_testnet_reset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Testnet Reset

on:
workflow_dispatch:

permissions:
contents: read

jobs:
testnet_reset:
name: Run Testnet Reset
runs-on: ubuntu-latest
env:
SECRET_SEP10_SIGNING_SEED: ${{ secrets.SECRET_SEP10_SIGNING_SEED }}
TEST_CLIENT_WALLET_SECRET: ${{ secrets.TEST_CLIENT_WALLET_SECRET }}
TEST_CLIENT_WALLET_EXTRA_SIGNER_1_SECRET: ${{ secrets.TEST_CLIENT_WALLET_EXTRA_SIGNER_1_SECRET }}
TEST_CLIENT_WALLET_EXTRA_SIGNER_2_SECRET: ${{ secrets.TEST_CLIENT_WALLET_EXTRA_SIGNER_2_SECRET }}
OTHER_SEP10_SIGNING_SECRET: ${{ secrets.OTHER_SEP10_SIGNING_SECRET }}
TEST_WITHDRAW_FUND_CLIENT_SECRET_1: ${{ secrets.TEST_WITHDRAW_FUND_CLIENT_SECRET_1 }}
TEST_WITHDRAW_FUND_CLIENT_SECRET_2: ${{ secrets.TEST_WITHDRAW_FUND_CLIENT_SECRET_2 }}
TEST_DEPOSIT_FUND_CLIENT_SECRET_1: ${{ secrets.TEST_DEPOSIT_FUND_CLIENT_SECRET_1 }}
TEST_DEPOSIT_FUND_CLIENT_SECRET_2: ${{ secrets.TEST_DEPOSIT_FUND_CLIENT_SECRET_2 }}
USDC_ISSUER_SECRET: ${{ secrets.USDC_ISSUER_SECRET }}
SRT_ISSUER_SECRET: ${{ secrets.SRT_ISSUER_SECRET }}
TESTANCHOR_DISTRIBUTION_SECRET: ${{ secrets.TESTANCHOR_DISTRIBUTION_SECRET }}
TESTANCHOR_RECEIVE_SECRET: ${{ secrets.TESTANCHOR_RECEIVE_SECRET }}
SECRET__KEY: ${{ secrets.SECRET__KEY }}
steps:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32v1-none

- name: Install Stellar CLI
run: cargo install --locked stellar-cli --features opt

- name: Install stellar-sdk Python package
run: python3 -m pip install stellar-sdk

- name: Run testnet reset
working-directory: scripts
run: bash testnet_reset.sh
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Loading
Loading