-
Notifications
You must be signed in to change notification settings - Fork 1
/
deploy-testnet.sh
73 lines (61 loc) · 3.87 KB
/
deploy-testnet.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
bash build.sh
# MASTER TEST ACCOUNT CREDENTIALS
# {"account_id":"dia-oracles.testnet","public_key":"ed25519:4rW9mncNoTvEGhFLgmcak5gbmqcL5Y5v89FcN23QujsT","private_key":"ed25519:2ma7su54FHe4qJs3h5fL4X4iD3ru65Q5bBAqcyzRhjBTsjLdGWgXjd4ZTiP1AxBUzhHBFuQAjrhMAWS2kTYcZsnV"}
# Seed Phrase: drive help tiny office kiss divert autumn normal hill copy dove accident
#
##---------------------
## GATEWAY MAIN CONTRACT
##---------------------
## Use dia-oracles.testnet credentials for test contracts (add-key was called on acc creation)
#cp ~/.near-credentials/default/dia-oracles.testnet.json ~/.near-credentials/default/contract.dia-oracles.testnet.json
#create contract.dia-oracles.testnet account
#near add-key contract.dia-oracles.testnet 4rW9mncNoTvEGhFLgmcak5gbmqcL5Y5v89FcN23QujsT
#near create-account contract.dia-oracles.testnet --masterAccount dia-oracles.testnet
#near deploy contract.dia-oracles.testnet res/dia_contract.wasm new '{"owner_id":"dia-oracles.testnet"}'
## deploy no-init
#near deploy contract.dia-oracles.testnet res/dia_contract.wasm
##---------------------
## QUOTE TEST CONTRACT
##---------------------
## Use dia-oracles.testnet credentials for test contracts (add-key was called on acc creation)
cp ~/.near-credentials/default/dia-oracles.testnet.json ~/.near-credentials/default/quote-test-client.dia-oracles.testnet.json
## create quote-test-contract account
#near create-account quote-test-client.dia-oracles.testnet --masterAccount dia-oracles.testnet
#near add-key quote-test-client.dia-oracles.testnet 4rW9mncNoTvEGhFLgmcak5gbmqcL5Y5v89FcN23QujsT
#near deploy quote-test-client.dia-oracles.testnet res/quote_test_contract.wasm new '{}'
## deploy no-init
near deploy quote-test-client.dia-oracles.testnet res/quote_test_contract.wasm
##---------------------
## SUPPLY TEST CONTRACT
##---------------------
## Use dia-oracles.testnet credentials for test contracts (add-key was called on acc creation)
cp ~/.near-credentials/default/dia-oracles.testnet.json ~/.near-credentials/default/supply-test-client.dia-oracles.testnet.json
## create supply-test-contract account
#near create-account supply-test-client.dia-oracles.testnet --masterAccount dia-oracles.testnet
#near add-key supply-test-client.dia-oracles.testnet 4rW9mncNoTvEGhFLgmcak5gbmqcL5Y5v89FcN23QujsT
#near deploy supply-test-client.dia-oracles.testnet res/supply_test_contract.wasm new '{}'
## deploy no-init
near deploy supply-test-client.dia-oracles.testnet res/supply_test_contract.wasm
##---------------------
## TRADE VOLUME TEST CONTRACT
##---------------------
## Use dia-oracles.testnet credentials for test contracts (add-key was called on acc creation)
cp ~/.near-credentials/default/dia-oracles.testnet.json ~/.near-credentials/default/volume-test-client.dia-oracles.testnet.json
## create volume-test-contract account
#near create-account volume-test-client.dia-oracles.testnet --masterAccount dia-oracles.testnet
#near add-key volume-test-client.dia-oracles.testnet 4rW9mncNoTvEGhFLgmcak5gbmqcL5Y5v89FcN23QujsT
#near deploy volume-test-client.dia-oracles.testnet res/trade_volume_test_contract.wasm new '{}'
## deploy no-init
near deploy volume-test-client.dia-oracles.testnet res/trade_volume_test_contract.wasm
##---------------------
## SYMBOLS TEST CONTRACT
##---------------------
#Use dia-oracles.testnet credentials for test contracts (add-key was called on acc creation)
cp ~/.near-credentials/default/dia-oracles.testnet.json ~/.near-credentials/default/symbols-test-client.dia-oracles.testnet.json
#create symbols-test-contract account
#near create-account symbols-test-client.dia-oracles.testnet --masterAccount dia-oracles.testnet
#near add-key symbols-test-client.dia-oracles.testnet 4rW9mncNoTvEGhFLgmcak5gbmqcL5Y5v89FcN23QujsT
#near deploy symbols-test-client.dia-oracles.testnet res/symbols_test_contract.wasm new '{}'
## deploy no-init
near deploy symbols-test-client.dia-oracles.testnet res/symbols_test_contract.wasm