-
Notifications
You must be signed in to change notification settings - Fork 2
/
recurring-payroll-three.sh
executable file
·76 lines (70 loc) · 2.29 KB
/
recurring-payroll-three.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
#!/bin/bash
#source .env
#CONTRACT=$(echo $SETTINGS | jq -r '.["contracts"]["manager"]["address"]')
SIMPLE_PAYROLL='{
"create_task": {
"task": {
"interval": {
"Block": 2
},
"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 juno1c9mwkyf59kw2htf5gkdd7knzqx3damqvy6c67qcrud5w8dvw693qcedrw7 "$SIMPLE_PAYROLL" --amount 1000000ujunox --from mikereg --node https://juno-testnet-rpc.polkachu.com:443 --chain-id uni-5 --gas-prices 0.025ujunox --gas auto --gas-adjustment 1.3 -b block -y -o json | jq | head -n 42
junod tx wasm execute juno1gge2zjcu48f94jmfk36m5pcd6jaulj535kkkv07kwzp5gvrmfctswprlnp "$SIMPLE_PAYROLL" --amount 1000000ujunox --from mikereg --node https://juno-testnet-rpc.polkachu.com:443 --chain-id uni-5 --gas-prices 0.025ujunox --gas auto --gas-adjustment 1.3 -b block -y -o json | jq | head -n 42
#TXFLAG="--node https://rpc.uni.juno.deuslabs.fi:443 --chain-id uni-5 --gas-prices 0.025ujunox --gas auto --gas-adjustment 1.3 -b block"
#junod tx wasm execute $CONTRACT "$SIMPLE_PAYROLL" --amount 96994ujunox --from mikereg $TXFLAG -y
#echo "Done creating simple payroll"
#3006 + 96994
#3006 + 100000