-
Notifications
You must be signed in to change notification settings - Fork 2
/
immediate-payment.sh
executable file
·75 lines (69 loc) · 2.28 KB
/
immediate-payment.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
#!/bin/bash
#source .env
#CONTRACT=$(echo $SETTINGS | jq -r '.["contracts"]["manager"]["address"]')
SIMPLE_PAYROLL='{
"create_task": {
"task": {
"interval": "Immediate",
"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 juno1v3p9fshhnngmfndgj58e0f35lz0ndl38rc72knuv2f3y2jpanhlq564clt "$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
#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"
# remove task
#junod tx wasm execute juno1v3p9fshhnngmfndgj58e0f35lz0ndl38rc72knuv2f3y2jpanhlq564clt "$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
#3006 + 96994
#3006 + 100000