Bakers Registry client
Console client for the Tezos Bakers Registry
Decentralized approach
- Does not depend on a particular indexer: you can choose from several options, or add new one with little efforts
- Most data is retrieved from a pool of public RPC nodes
Installation
pip install bakers-registry
Requirements
- python 3.6+
- pip
Get the current baker config
bakers get BAKER_ADDRESS <flags>
Arguments
BAKER_ADDRESStz-address--output_file=OUTPUT_FILEpath to the file to store the data (optional)--raw=RAWkeep intermediate data representation (default is False)--network=NETWORKTezos network (default is mainnet)--registry_address=REGISTRY_ADDRESSaddress of the registry contract (predefined)
Sample output
{
"bakerName": "Bake'n'Rolls",
"openForDelegation": true,
"bakerOffchainRegistryUrl": "https://bakenrolls.com/registry.json",
"fee": "0.09",
"bakerPaysFromAccounts": [
"tz1Zrqm4TkJwqTxm5TiyVFh6taXG4Wrq7tko"
],
"minDelegation": "10",
"subtractPayoutsLessThanMin": true,
"payoutDelay": 6,
"payoutFrequency": 1,
"minPayout": "0",
"bakerChargesTransactionFee": true,
"paymentConfig": {
"payForOwnBlocks": true,
"payForStolenBlocks": true,
"compensateMissedBlocks": false,
"payForEndorsements": true,
"compensateLowPriorityEndorsementLoss": false,
"compensateMissedEndorsements": false,
"payGainedFees": true,
"payForAccusationGains": true,
"subtractLostDepositsWhenAccused": true,
"subtractLostRewardsWhenAccused": true,
"subtractLostFeesWhenAccused": true,
"payForRevelation": true,
"subtractLostRewardsWhenMissRevelation": true,
"subtractLostFeesWhenMissRevelation": true
},
"overDelegationThreshold": 100,
"subtractRewardsFromUninvitedDelegation": true
}
Raw format
{
"bakerName": "42616b65276e27526f6c6c73",
"openForDelegation": true,
"bakerOffchainRegistryUrl": "68747470733a2f2f62616b656e726f6c6c732e636f6d2f72656769737472792e6a736f6e",
"split": 9100,
"bakerPaysFromAccounts": [
"tz1Zrqm4TkJwqTxm5TiyVFh6taXG4Wrq7tko"
],
"minDelegation": 100000,
"subtractPayoutsLessThanMin": true,
"payoutDelay": 6,
"payoutFrequency": 1,
"minPayout": 0,
"bakerChargesTransactionFee": true,
"paymentConfigMask": 16383,
"overDelegationThreshold": 100,
"subtractRewardsFromUninvitedDelegation": true,
"reporterAccount": "tz1Zrqm4TkJwqTxm5TiyVFh6taXG4Wrq7tko"
}
Generate tezos-client command from the config file
bakers set BAKER_ADDRESS INPUT_FILE <flags>
Arguments
BAKER_ADDRESStz-addressINPUT_FILEpath to the file with configuration (can contain any-level representation)--preview=PREVIEWprint resulting config instead of command line (default is False)--network=NETWORKTezos network (default is mainnet)--registry_address=REGISTRY_ADDRESSaddress of the registry contract (predefined)
Sample output
transfer 0 from tz1NortRftucvAkD1J58L32EhSVrQEWJCEnB to KT1ChNsEFxwyCbJyWGSL3KdjeXE28AY1Kaog --entrypoint 'set_data' --arg 'Pair "tz1NortRftucvAkD1J58L32EhSVrQEWJCEnB" (Pair (Some (Pair (Pair (Pair 0x42616b65276e27526f6c6c73 True) 0x68747470733a2f2f62616b656e726f6c6c732e636f6d2f72656769737472792e6a736f6e) (Pair (Pair 9100 { "tz1Zrqm4TkJwqTxm5TiyVFh6taXG4Wrq7tko" }) (Pair (Pair (Pair 100000 True) (Pair 6 (Pair 1 0))) (Pair (Pair True 16383) (Pair 100 True)))))) None)'
Create default config
bakers new <flags>
Arguments
--output_file=OUTPUT_FILEpath to the file to store the data (optional)
Get all bakers data
bakers all OUTPUT_FILE <flags>
Arguments
OUTPUT_FILEpath to the file--raw=RAWkeep intermediate data representation (default is False)--indexer=INDEXERwhich indexer to use to retrieve operation levels [tzkt, tzstats, conseil]--network=NETWORKTezos network (default is mainnet)--registry_address=REGISTRY_ADDRESSaddress of the registry contract (predefined)
Get recent changes
bakers log <flags>
Arguments
--output_file=OUTPUT_FILEpath to the file--since=SINCEset lower bound, can be level (int) or string "level:700000" "cycle:170"--raw=RAWkeep intermediate data representation (default is False)--indexer=INDEXERwhich indexer to use to retrieve operation levels [tzkt, tzstats, conseil]--network=NETWORKTezos network (default is mainnet)--registry_address=REGISTRY_ADDRESSaddress of the registry contract (predefined)
Sample output
738542 Airfoil subtractLostFeesWhenMissRevelation: true => false
738542 Airfoil subtractLostRewardsWhenMissRevelation: true => false
738542 Airfoil payForRevelation: true => false
738542 Airfoil bakerPaysFromAccounts: [] => ["tz1QH3G2btaWc1vRLNsEfx2gHM7Ad81TeRit"]
738542 Airfoil bakerOffchainRegistryUrl: "" => "https://airfoil.services/airfoil.json"
738542 Airfoil openForDelegation: false => true
736381 Crypto Delegate LLC subtractRewardsFromUninvitedDelegation: true => false
736381 Crypto Delegate LLC subtractLostFeesWhenMissRevelation: true => false
736381 Crypto Delegate LLC subtractLostRewardsWhenMissRevelation: true => false
736381 Crypto Delegate LLC subtractLostFeesWhenAccused: true => false
736381 Crypto Delegate LLC subtractLostRewardsWhenAccused: true => false
736381 Crypto Delegate LLC subtractLostDepositsWhenAccused: true => false
736381 Crypto Delegate LLC compensateMissedEndorsements: false => true
736381 Crypto Delegate LLC compensateMissedBlocks: false => true
736381 Crypto Delegate LLC payoutDelay: 6 => 0
736381 Crypto Delegate LLC subtractPayoutsLessThanMin: true => false
736381 Crypto Delegate LLC bakerPaysFromAccounts: [] => ["tz1MyXTZmeMCM4yFnrER9LNYDZ9t2rHYDvcH"]
736381 Crypto Delegate LLC fee: "0.25" => "-80"
736381 Crypto Delegate LLC bakerOffchainRegistryUrl: "" => "https://www.cryptodelegate.com/files/theme/CDReg.json"
736381 Crypto Delegate LLC bakerName: "Crypto Delegate" => "Crypto Delegate LLC"
732641 YieldWallet.io New Baker: tz1Q8QkSBS63ZQnH3fBTiAMPes9R666Rn6Sc
730509 Bake'n'Rolls minDelegation: "0" => "10"
730226 TezoSteam minDelegation: "0" => "100"
730226 TezoSteam bakerPaysFromAccounts: [] => ["tz1YrmJw6Lje27gWqZ94gU9mNavEjkHu1xGc"]
730226 TezoSteam bakerOffchainRegistryUrl: "" => "https://raw.githubusercontent.com/StakingTeam/TezoSteam/master/info/reg.json"
730151 tezzz fee: "0.03" => "0.045"
Metadata
Release files for bakers-registry 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| bakers-registry-0.2.1.tar.gz | 12.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bakers_registry-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.4 kB
Release files / bakers-registry-0.2.1.tar.gz
| Download URL | bakers-registry-0.2.1.tar.gz |
|---|---|
| Size | 12.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f4a6402bb16bf6ab4e5742bd03446a07d1f570f8682f7a1758b383d58fd590e
|
|
BLAKE2b-256 checksum How to use checksums |
3572be69511b21a734206c35e98b3982c57689d5f723c76be985aa4070964aa9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.0 Linux/5.4.0-58-generic
|
Release files / bakers_registry-0.2.1-py3-none-any.whl
| Download URL | bakers_registry-0.2.1-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d219a22937d6aedbae43f7a654a811a6585854196c8f3a3dba30bcbbb2946f4
|
|
BLAKE2b-256 checksum How to use checksums |
13ef47c4553c1f423da0e47469f6c14076638ac4ab8d82bf68721c59b3ac4a00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.0 Linux/5.4.0-58-generic
|
Security for bakers-registry 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.