-
Notifications
You must be signed in to change notification settings - Fork 0
/
actions.txt
50 lines (40 loc) · 2.69 KB
/
actions.txt
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
// 1h = 3600000000000 ns
// 30min = 1800000000000 ns
// 10min = 600000000000 ns
near deploy lottery-test-c.testnet build/v2_contract.wasm --initFunction init --initArgs '{"admin": "lolwtf.testnet", "yieldSource": "storage.herewallet.testnet"}'
near deploy funstake-usdt-test-d.testnet build/v1usdt.funstake.near.wasm --initFunction init --initArgs '{"admin": "armmgh.testnet", "yieldSource": "burrow.services.ref-labs.testnet", "token": "usdtt.ft.ref-labs.testnet"}'
near deploy funstake-test-a.near build/v2_contract.wasm --initFunction init --initArgs '{"admin": "armmgh.tg", "yieldSource": "storage.herewallet.near"}'
near deploy v1hnear.funstake.near build/v2_contract.wasm --initFunction init --initArgs '{"admin": "armmgh.tg", "yieldSource": "storage.herewallet.near"}'
### Start Session
#near
near call lottery-test-c.testnet start_session '{"duration": "1800000000000", "countOfWinNumbers": 1}' --accountId lolwtf.testnet
near call funstake-test-a.near start_session '{"duration": "600000000000", "countOfWinNumbers": 1}' --accountId armmgh.tg --networkId mainnet
near call v1hnear.funstake.near start_session '{"duration": "600000000000", "countOfWinNumbers": 1}' --accountId armmgh.tg --networkId mainnet
#usdt
near call funstake-usdt-test-d.testnet start_session '{"duration": "600000000000", "countOfWinNumbers": 1}' --accountId armmgh.testnet
near call lottery-test-c.testnet stake '' --deposit 2 --accountId armmgh.testnet --gas 80000000000000
near call storage.herewallet.testnet deposit --deposit 2 --accountId lottery-test-c.testnet
### Finalize Sesison
#near
near call lottery-test-c.testnet finalize_session '' --accountId lolwtf.testnet --gas 150000000000000 --depositYocto 1
near call funstake-test-a.near finalize_session '' --accountId armmgh.tg --gas 150000000000000 --depositYocto 1 --networkId mainnet
near call v1hnear.funstake.near finalize_session '' --accountId armmgh.tg --gas 150000000000000 --depositYocto 1 --networkId mainnet
#usdt
near call funstake-usdt-test-d.testnet finalize_session '' --accountId armmgh.testnet --gas 250000000000000 --depositYocto 1
### Claim
#near
near call lottery-test-c.testnet claim '' --accountId armmgh.testnet --gas 50000000000000
#usdt
near call funstake-usdt-test-d.testnet claim '' --accountId armmgh.testnet --gas 150000000000000
### Cashout
#usdt
near call funstake-usdt-test-d.testnet cashout '' --accountId armmgh.testnet --gas 250000000000000 --depositYocto 1
#near call storage.herewallet.near receive_dividends --accountId funstake-test-a.near --networkId mainnet
// TODO: linear/ref-finance
// NearPromise.new(this.yieldSource).functionCall(
// 'deposit_and_stake',
// NO_ARGS,
// finalAmount,
// THIRTY_TGAS,
// )
// return now