-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathinit_sales.sh
executable file
·88 lines (80 loc) · 2.66 KB
/
init_sales.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/bin/bash
set -e
cd "$(dirname $0)"
[ "$#" -eq 1 ] || die "One Account ID argument required, $# provided"
ACCOUNT_ID=$1
SKYWARD_TOKEN_ID=token.$ACCOUNT_ID
CONTRACT_ID=$ACCOUNT_ID
WRAP_NEAR_TOKEN_ID=wrap.near
START_TIME=1625097600
near call $CONTRACT_ID --accountId=$CONTRACT_ID sale_create '{"sale": {
"title": "SKYWARD 25% Initial sale",
"out_tokens": [{
"token_account_id": "'$SKYWARD_TOKEN_ID'",
"balance": "250000000000000000000000",
"referral_bpt": 100
}],
"in_token_account_id": "'$WRAP_NEAR_TOKEN_ID'",
"start_time": "'$START_TIME'000000000",
"duration": "604800000000000"
}}'
START_TIME=1627776000
near call $CONTRACT_ID --accountId=$CONTRACT_ID sale_create '{"sale": {
"title": "SKYWARD 20% August sale",
"out_tokens": [{
"token_account_id": "'$SKYWARD_TOKEN_ID'",
"balance": "200000000000000000000000",
"referral_bpt": 100
}],
"in_token_account_id": "'$WRAP_NEAR_TOKEN_ID'",
"start_time": "'$START_TIME'000000000",
"duration": "604800000000000"
}}'
START_TIME=1630454400
near call $CONTRACT_ID --accountId=$CONTRACT_ID sale_create '{"sale": {
"title": "SKYWARD 15% September sale",
"out_tokens": [{
"token_account_id": "'$SKYWARD_TOKEN_ID'",
"balance": "150000000000000000000000",
"referral_bpt": 100
}],
"in_token_account_id": "'$WRAP_NEAR_TOKEN_ID'",
"start_time": "'$START_TIME'000000000",
"duration": "604800000000000"
}}'
START_TIME=1633046400
near call $CONTRACT_ID --accountId=$CONTRACT_ID sale_create '{"sale": {
"title": "SKYWARD 10% October sale",
"out_tokens": [{
"token_account_id": "'$SKYWARD_TOKEN_ID'",
"balance": "100000000000000000000000",
"referral_bpt": 100
}],
"in_token_account_id": "'$WRAP_NEAR_TOKEN_ID'",
"start_time": "'$START_TIME'000000000",
"duration": "604800000000000"
}}'
START_TIME=1635724800
near call $CONTRACT_ID --accountId=$CONTRACT_ID sale_create '{"sale": {
"title": "SKYWARD 10% November sale",
"out_tokens": [{
"token_account_id": "'$SKYWARD_TOKEN_ID'",
"balance": "100000000000000000000000",
"referral_bpt": 100
}],
"in_token_account_id": "'$WRAP_NEAR_TOKEN_ID'",
"start_time": "'$START_TIME'000000000",
"duration": "604800000000000"
}}'
START_TIME=1638316800
near call $CONTRACT_ID --accountId=$CONTRACT_ID sale_create '{"sale": {
"title": "SKYWARD 10% Final sale",
"out_tokens": [{
"token_account_id": "'$SKYWARD_TOKEN_ID'",
"balance": "100000000000000000000000",
"referral_bpt": 100
}],
"in_token_account_id": "'$WRAP_NEAR_TOKEN_ID'",
"start_time": "'$START_TIME'000000000",
"duration": "604800000000000"
}}'