-
Notifications
You must be signed in to change notification settings - Fork 0
/
keychainpurchase.js
69 lines (64 loc) · 1.95 KB
/
keychainpurchase.js
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
$("#send_1").click(function () {
hive_keychain.requestCustomJson(
null,
"sm_token_transfer",
"active",
'{"to":"solaito","qty":95,"token":"DEC","type":"withdraw","app":"splinterviewer"}',
"Confirm the purchase of a 1 day Splinterviewer license for 95 DEC.",
function (response) {
$.post("purchase.php", { name: response.data.username, days: 1 });
}
);
});
$("#send_7").click(function () {
hive_keychain.requestCustomJson(
null,
"sm_token_transfer",
"active",
'{"to":"solaito","qty":495,"token":"DEC","type":"withdraw","app":"splinterviewer"}',
"Confirm the purchase of a 7 days Splinterviewer license for 495 DEC.",
function (response) {
$.post("purchase.php", { name: response.data.username, days: 7 });
}
);
});
$("#send_30").click(function () {
hive_keychain.requestCustomJson(
null,
"sm_token_transfer",
"active",
'{"to":"solaito","qty":995,"token":"DEC","type":"withdraw","app":"splinterviewer"}',
"Confirm the purchase of a 30 days Splinterviewer license for 995 DEC.",
function (response) {
$.post("purchase.php", { name: response.data.username, days: 30 });
}
);
});
$("#donate50").click(function () {
console.log($("#donate50").value);
hive_keychain.requestCustomJson(
null,
"sm_token_transfer",
"active",
'{"to":"solaito","qty":50,"token":"DEC","type":"withdraw","app":"splinterviewer"}',
"Confirm the donation of 50 DEC."
);
});
$("#donate100").click(function () {
hive_keychain.requestCustomJson(
null,
"sm_token_transfer",
"active",
'{"to":"solaito","qty":100,"token":"DEC","type":"withdraw","app":"splinterviewer"}',
"Confirm the donation of 100 DEC."
);
});
$("#donate500").click(function () {
hive_keychain.requestCustomJson(
null,
"sm_token_transfer",
"active",
'{"to":"solaito","qty":500,"token":"DEC","type":"withdraw","app":"splinterviewer"}',
"Confirm the donation of 500 DEC."
);
});