Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
#226 Specified Operator Keypair
  • Loading branch information
mich-master committed Oct 13, 2021
commit 0cf3b7d4e07147ae6020def4edb5030d3b160356
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ COPY --from=spl /opt/collateral_pool_generator.py \
COPY --from=spl /opt/neon-cli /spl/bin/emulator

COPY . /opt
COPY ./proxy-keypair.json /root/.config/solana/id.json
RUN cd /usr/local/lib/python3.8/dist-packages/ && patch -p0 </opt/solana-py.patch

ENV PATH /venv/bin:/cli/bin/:/spl/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Expand Down
1 change: 1 addition & 0 deletions proxy-keypair.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[161,247,66,57,203,188,141,236,124,123,200,192,255,23,161,34,116,202,70,182,176,94,195,68,185,32,61,42,203,57,245,190,153,233,189,58,187,209,15,232,83,112,145,116,89,187,201,44,36,255,81,102,84,101,62,1,180,217,194,37,147,74,7,170]
6 changes: 6 additions & 0 deletions proxy-keypair.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
==========================================================================
pubkey: BMp6gEnveANdvSvspESJUrNczuHz1GF5UQKjVLCkAZih
==========================================================================
Save this seed phrase and your BIP39 passphrase to recover your new keypair:
give citizen flight into world observe motion tennis dash crisp rib theory
==========================================================================
5 changes: 5 additions & 0 deletions proxy/run-proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,13 @@ ADDRESS=$(solana address || echo "no wallet")

if [ "$ADDRESS" == "no wallet" ]; then
solana-keygen new --no-passphrase
fi

ACCOUNT_CONTENT=$(solana -u https://api.devnet.solana.com account $(solana address))
if [ "$ACCOUNT_CONTENT" == "Error" ]; then
echo "airdropping..."
solana airdrop 1000
else
# check that balance >= 10 otherwise airdroping by 1 SOL up to 10
BALANCE=$(solana balance | tr '.' '\t'| tr '[:space:]' '\t' | cut -f1)
while [ "$BALANCE" -lt 10 ]; do
Expand Down