-
Notifications
You must be signed in to change notification settings - Fork 2
/
recurring-payroll-minute.sh
executable file
·64 lines (62 loc) · 1.62 KB
/
recurring-payroll-minute.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
#!/bin/bash
SIMPLE_PAYROLL='{
"create_task": {
"task": {
"interval": {
"Cron": "0 * * * * *"
},
"boundary": null,
"cw20_coins": [],
"stop_on_fail": false,
"actions": [
{
"msg": {
"bank": {
"send": {
"amount": [
{
"amount": "1001",
"denom": "ujunox"
}
],
"to_address": "juno1njf5qv8ryfl07qgu5hqy8ywcvzwyrt4kzqp07d"
}
}
}
},
{
"msg": {
"bank": {
"send": {
"amount": [
{
"amount": "1002",
"denom": "ujunox"
}
],
"to_address": "juno1pd43m659naajmn2chkt6tna0uud2ywyp5dm4h3"
}
}
}
},
{
"msg": {
"bank": {
"send": {
"amount": [
{
"amount": "1003",
"denom": "ujunox"
}
],
"to_address": "juno15w7hw4klzl9j2hk4vq7r3vuhz53h3mlzug9q6s"
}
}
}
}
],
"rules": []
}
}
}'
junod tx wasm execute juno176dmc2566wd42sqt2yhzgew7n6669u6vmdp527szlyn8ehnht49qkphgr0 "$SIMPLE_PAYROLL" --amount 1000000ujunox --from mikereg --node https://rpc.uni.juno.deuslabs.fi:443 --chain-id uni-5 --gas-prices 0.025ujunox --gas auto --gas-adjustment 1.3 -b block -y -o json | jq | head -n 42