Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: holgern/beem
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.23.0
Choose a base ref
...
head repository: holgern/beem
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.23.1
Choose a head ref
  • 18 commits
  • 23 files changed
  • 4 contributors

Commits on Apr 19, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    730cf5f View commit details
  2. Add setproxy to CLI

    Flugschwein committed Apr 19, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    1327aa9 View commit details

Commits on Apr 20, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    f0c0860 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    5c3d656 View commit details

Commits on Apr 21, 2020

  1. Merge pull request #231 from holgern/pyup-scheduled-update-2020-04-20

    Scheduled weekly dependency update for week 16
    holgern authored Apr 21, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    8d9a34d View commit details
  2. Fix invalid escape sequence

    holgern committed Apr 21, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    3665da5 View commit details
  3. Fixed warning

    holgern committed Apr 21, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    cff07fc View commit details

Commits on Apr 22, 2020

  1. Merge pull request #230 from Flugschwein/flugschwein-proxy

    Add witness proxy management functions
    holgern authored Apr 22, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    137ed64 View commit details
  2. Add unit tests for setproxy

    holgern committed Apr 22, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    5e53832 View commit details
  3. fix updatenode in shell mode

    holgern committed Apr 22, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    f71bd7b View commit details
  4. Copy the full SHA
    506cdc4 View commit details
  5. Fix unit test

    holgern committed Apr 22, 2020
    Copy the full SHA
    9f00b3b View commit details

Commits on Apr 23, 2020

  1. Copy the full SHA
    514d41a View commit details
  2. Fix unit tests

    holgern committed Apr 23, 2020
    Copy the full SHA
    de99f2f View commit details

Commits on Apr 26, 2020

  1. Improved beempy keygen and new update_account and beempy changekeys

    * Add hive node
    * update_account function added to blockchaininstance
    * normalize added to PasswordKey, so that a Brainkey can be set as PasswordKey
    * Fixed vote percentage calculation when post rshares is negative
    * new beempy command changekeys
    * beempy keygen can be used to generate account keys from a given password and is able to generate new passwords
    holgern committed Apr 26, 2020
    Copy the full SHA
    b5d0eba View commit details
  2. Fix typo

    holgern committed Apr 26, 2020
    Copy the full SHA
    a30c131 View commit details
  3. Copy the full SHA
    c321c11 View commit details
  4. Rename file import parameter

    holgern committed Apr 26, 2020
    Copy the full SHA
    d0b9642 View commit details
19 changes: 19 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
Changelog
=========
0.23.1
------
* setproxy function added to Account (thanks to @flugschwein)
* addproxy and delproxy added to beempy (thanks to @flugschwein)
* updatenodes works in shell mode
* Fix offline mode for Hive
* add about command to beempy
* Add hive node
* update_account function added to blockchaininstance
* normalize added to PasswordKey, so that a Brainkey can be set as PasswordKey
* Fixed vote percentage calculation when post rshares is negative
* new beempy command changekeys
* beempy keygen can be used to generate account keys from a given password and is able to generate new passwords
* add option to beempy keygen to export pub account keys as json file
* add option to beempy newaccount and changekeys to import pub account keys from a json file

0.23.0
------
* new chain ID for HF24 on HIVE has been added
* set hive as default for default_chain
* get_steem_nodes added to NodeList
* Prepared for Hive HF 24
@@ -16,6 +33,8 @@ Changelog
* Rshares, vote percentage and SBD/HBD calculation has been fixed for votes
* post_rshares parameter added to all vote calculations
* Account class has now get_token_power(), get_voting_value() and get_vote_pct_for_vote_value()
* HF 23 and HF24 operations were added thanks to @flugschwein
* Downvote power was added to Snapshot thanks to @flugschwein

0.22.14
-------
27 changes: 26 additions & 1 deletion beem/account.py
Original file line number Diff line number Diff line change
@@ -2537,6 +2537,31 @@ def disapprovewitness(self, witness, account=None, **kwargs):
return self.approvewitness(
witness=witness, account=account, approve=False)

def setproxy(self, proxy='', account=None):
""" Set the witness and proposal system proxy of an account
:param proxy: The account to set the proxy to (Leave empty for removing the proxy)
:type proxy: str or Account
:param account: The account the proxy should be set for
:type account: str or Account
"""
if account is None:
account = self
elif isinstance(account, Account):
pass
else:
account = Account(account)

if isinstance(proxy, str):
proxy_name = proxy
else:
proxy_name = proxy["name"]
op = operations.Account_witness_proxy(**{
'account': account.name,
'proxy': proxy_name
})
return self.blockchain.finalizeOp(op, account, 'active')

def update_memo_key(self, key, account=None, **kwargs):
""" Update an account's memo public key
@@ -2567,7 +2592,7 @@ def update_account_keys(self, new_password, account=None, **kwargs):
""" Updates all account keys
This method does **not** add any private keys to your
wallet but merely changes the memo public key.
wallet but merely changes the public keys.
:param str new_password: is used to derive the owner, active,
posting and memo key
Loading