Package: bakers-registry
Bakers Registry clientConsole client for theTezos Bakers RegistryDecentralized approachDoes not depend on a particular indexer: you can choose from several options, or add new one with little effortsMost data is retrieved from a pool of public RPC nodesInstallationpipinstallbakers-registryRequirementspython 3.6+pipGet the current baker configbakersgetBAKER_ADDRESS<flags>ArgumentsBAKER_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 filebakerssetBAKER_ADDRESSINPUT_FILE<flags>ArgumentsBAKER_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 outputtransfer0fromtz1NortRftucvAkD1J58L32EhSVrQEWJCEnBtoKT1ChNsEFxwyCbJyWGSL3KdjeXE28AY1Kaog--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 configbakersnew<flags>Arguments--output_file=OUTPUT_FILEpath to the file to store the data (optional)Get all bakers databakersallOUTPUT_FILE<flags>ArgumentsOUTPUT_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 changesbakerslog<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 output738542AirfoilsubtractLostFeesWhenMissRevelation:true=>false738542AirfoilsubtractLostRewardsWhenMissRevelation:true=>false738542AirfoilpayForRevelation:true=>false738542AirfoilbakerPaysFromAccounts:[]=>["tz1QH3G2btaWc1vRLNsEfx2gHM7Ad81TeRit"]738542AirfoilbakerOffchainRegistryUrl:""=>"https://airfoil.services/airfoil.json"738542AirfoilopenForDelegation:false=>true736381CryptoDelegateLLCsubtractRewardsFromUninvitedDelegation:true=>false736381CryptoDelegateLLCsubtractLostFeesWhenMissRevelation:true=>false736381CryptoDelegateLLCsubtractLostRewardsWhenMissRevelation:true=>false736381CryptoDelegateLLCsubtractLostFeesWhenAccused:true=>false736381CryptoDelegateLLCsubtractLostRewardsWhenAccused:true=>false736381CryptoDelegateLLCsubtractLostDepositsWhenAccused:true=>false736381CryptoDelegateLLCcompensateMissedEndorsements:false=>true736381CryptoDelegateLLCcompensateMissedBlocks:false=>true736381CryptoDelegateLLCpayoutDelay:6=>0736381CryptoDelegateLLCsubtractPayoutsLessThanMin:true=>false736381CryptoDelegateLLCbakerPaysFromAccounts:[]=>["tz1MyXTZmeMCM4yFnrER9LNYDZ9t2rHYDvcH"]736381CryptoDelegateLLCfee:"0.25"=>"-80"736381CryptoDelegateLLCbakerOffchainRegistryUrl:""=>"https://www.cryptodelegate.com/files/theme/CDReg.json"736381CryptoDelegateLLCbakerName:"Crypto Delegate"=>"Crypto Delegate LLC"732641YieldWallet.ioNewBaker:tz1Q8QkSBS63ZQnH3fBTiAMPes9R666Rn6Sc730509Bake'n'RollsminDelegation:"0"=>"10"730226TezoSteamminDelegation:"0"=>"100"730226TezoSteambakerPaysFromAccounts:[]=>["tz1YrmJw6Lje27gWqZ94gU9mNavEjkHu1xGc"]730226TezoSteambakerOffchainRegistryUrl:""=>"https://raw.githubusercontent.com/StakingTeam/TezoSteam/master/info/reg.json"730151tezzzfee:"0.03"=>"0.045"