-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.md
61 lines (39 loc) · 2.48 KB
/
README.md
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
# Bakers-Dozen
Useful Tools for Bakers
## Make multiple payments - makePayments.sh (tested on Ubuntu 18.4)
First you need to install expect
```
sudo apt-get update
sudo apt-get -y install expect
```
You also need to add the tezos directory to your path so the script can be run from anywhere. Add the following to your .profile
```
if [ -d "$HOME/tezos" ] ; then
PATH="$PATH:$HOME/tezos"
fi
```
To use the bash payment script, create a payment.txt file in the same directory and each line of the file should be a node payment statement. This is an example file below:
payment.txt file example
```
tezos-client transfer 1 from TezBaker to address1 --fee 0
tezos-client transfer 2 from TezBaker to address2 --fee 0
tezos-client transfer 3 from TezBaker to address3 --fee 0
```
Run the script and it will only prompt you for the encryption key password once. This doesn't speed up payments, as it currently takes one block per payment, but at least can run to completion without any further input. It is assumed that the tezos directoy is in your path so that tezos-client can be found.
```
./makePayments.sh
```
The bash script prompts for a password and passes it to an expect script (_runNodePayments.tcl) which loops for every line in the payments file.
## Google Baking Sheet
You need to make a copy of the sheet before you can use it. You set the parameters in the top left panel on the summary sheet and run the scripts under the Rewards menu. The scripts may timeout with a large baker but you can filter on your address.
It is mainly a tool for bakers to generate their payments but you can also filter your account to see your own payments.
https://docs.google.com/spreadsheets/d/1mUVa2AtYG1Ga3KPkc6CxSOqa2e4glNimNzuu_ZnITvg/edit?usp=sharing
### Fields
Start and End Cycle Rewards – Go and get rewards between for these cycles (_rewards sheet)
Start and End Cycle Payments – Go and get the rewards for each delegate and compute the payment amount (_cycle payments sheet)
Default Fee – If a fee has not been specified for an address then use this default fee
Baker Address – The baker address that rewards will be calculated
Payment Address – This address is used to create the Tezos command (k column on _cycle payments sheet)
Delegate Filter – Can filter by one delegate address, this is useful for a delegate to check their rewards
Cycles Per Year – This is used to calculate the APR
Network Fee – This is used to subtract of the delegates reward to cover their fee cost for the transaction