Skip to content

Releases: ChaosDAO-org/InternalGov-2.0

InternalGov-v2.2.12

01 Apr 20:06
02cb6d1
Compare
Choose a tag to compare

What's Changed

  • prepare for automatic user management for larger DAOs by @Nadro-J in #99
  • added 5 second timeout to SubstrateInterface() by @Nadro-J in #100

Full Changelog: InternalGov-v2.2.11...InternalGov-v2.2.12

InternalGov-v2.2.11

01 Mar 16:23
29abe1c
Compare
Choose a tag to compare

What's Changed

  • Notifies @voters when proposal reaches T-24hrs with insufficient participation. Auto-abstain will be cast if no action is taken. by @Nadro-J in #95
    image
  • fixing spelling mistake + including recuse voters as part of the participation % by @Nadro-J in #96

Full Changelog: InternalGov-v2.2.9...InternalGov-v2-2-11

InternalGov-v2.2.9

17 Feb 02:18
95e85dd
Compare
Choose a tag to compare

What's Changed

  • Use ceiling for quorum calculations to ensure minimum voter threshold by @Nadro-J in #93
  • Add Dockerfile by @tomusdrw in #90

New Contributors

Full Changelog: InternalGov-v2.2.8...InternalGov-v2.2.9

InternalGov-v2.2.8

14 Feb 03:32
635a2a2
Compare
Choose a tag to compare

What's Changed

  • escape_underscores & escape_asterisks set to False when converting markdown for discord by @x676f64 @Nadro-J in #92

Before
image

After
image

Full Changelog: InternalGov-v2.2.7...InternalGov-v2.2.8

InternalGov-v2.2.7

15 Jan 04:15
07fd352
Compare
Choose a tag to compare

What's Changed

  • Error processing referendum 1384 by @Nadro-J in #91
    • JSON key ['content'] contained no data when fetching referendum info from Polkassembly/Subsquare which cause a failure in the creation of the thread. This is because Discord expects 1 or more characters in the body. It will now return "Unable to retrieve content" when the content length is 0.

For context; this issue happened because one of the data sources cleared the content on referendum 1384 as it contained a phishing URL. Please be aware that referendum(s): 1386, 1387 are duplicates of the same phishing attempt and have not been cleared from Polkassembly or Subsquare.


If you are affected and can't see 1384 on Discord, pull the latest version; remove 1384 from data\governance.cache and restart the bot.

Make sure not to break the JSON format when removing

The key to remove

    "1384": {
        "Ongoing": {
            "alarm": [
                24489671,
                [
                    24489671,
                    0
                ]
            ],
            "deciding": null,
            "decision_deposit": null,
            "enactment": {
                "After": 100
            },
            "in_queue": false,
            "origin": {
                "Origins": "SmallTipper"
            },
            "proposal": {
                "Lookup": {
                    "hash": "0xc424ccc73fed72eb8bb01fdb6ed137e5c66524b98705cda12729d4044f2181cb",
                    "len": 41
                }
            },
            "submission_deposit": {
                "amount": 10000000000,
                "who": "12jDGSKkmiicJsRjHcZF43SVbrft572JAzfsKbH9pvoAsku4"
            },
            "submitted": 24288071,
            "tally": {
                "ayes": 0,
                "nays": 50000000000,
                "support": 50000000000000
            },
            "track": 30
        }
    }

Full Changelog: InternalGov-v2.2.6...InternalGov-v2.2.7

InternalGov-v2.2.6

12 Dec 04:55
8d510f8
Compare
Choose a tag to compare

What's Changed

  • notify admin role when balance is low by @Nadro-J in #89

Full Changelog: InternalGov-v2.1.6...InternalGov-v2.2.6

InternalGov-v2.1.6

04 Dec 01:13
3f1f79c
Compare
Choose a tag to compare

What's Changed

  • minor changes to handling RPC connections by @Nadro-J in #88

Full Changelog: InternalGov-v2.0.6...InternalGov-v2.1.6

InternalGov-v2.0.6

09 Nov 17:22
5f42321
Compare
Choose a tag to compare

What's Changed

  • Adding new setting VOTE_WITH_BALANCE by @Nadro-J in #65
  • Optimisations to RPC + Identity bug fix with incorrect MD format by @Nadro-J in #66
  • WFC added to MD table with default settings by @Nadro-J in #67
  • TaskHandler, New setting 'VOTE_WITH_BALANCE' & adjusting schedule timing to sync_embeds() by @Nadro-J in #68
  • Use dictionary's get method for safer key access in get_asset_price_v2() by @Nadro-J in #69
  • updating README details on PM2 by @Nadro-J in #70
  • Improve error handling & retry logic for fetching price from CoinGecko API by @Nadro-J in #71
  • refactor RPC calls to use asyncio.to_thread & asyncio.wait_for for non-blocking behavior and timeout handling by @Nadro-J in #72
  • changes to asyncio, removal of change_presence + structuring of tasks in preparation for v2.0.6 by @Nadro-J in #73
  • minor changes to timeouts / exception handling by @Nadro-J in #74
  • fixing spelling mistake.. by @Nadro-J in #75
  • updating docstring with high-level details on how each task runs by @Nadro-J in #76
  • Refactor Proxy Handling, Increase Timeouts, and Optimize Task and Voting Management by @Nadro-J in #80
  • bugfix to cater to issues where the call couldn't be decoded. by @Nadro-J in #81
  • Add 'Unable to Decode Call' to call details when creating proposal threads by @Nadro-J in #82
  • Initialize SubstrateInterface once, using self.substrate.connect_websocket to reconnect when required by @Nadro-J in #83
  • bump discord version to 2.4.0 by @Nadro-J in #85

Important

VOTE_WITH_BALANCE allows you set the amount of DOT/KSM the governance proxy votes with. If you set this to 0, the governance proxy will vote with the entire balance. This is useful for cases where the account that receives delegations holds a balance that you don't want to lock up in governance.

The account that receives delegations can vote with as little as 1 DOT/KSM and anyone delegated will follow suit.

Remember to set VOTE_WITH_BALANCE='' in the .env config file before starting the bot back up


libraries

  • discord.py==2.4.0
  • substrate-interface==1.7.11
    • Nothing specific that the bot will benefit from, but its always good to keep up with the latest releases and not fall behind

Security

The following library versions have been updated in requirements.txt - Although the bot doesn't use any of these methods, it is recommended you upgrade these underlying libraries anyway to mitigate any risk.


Full Changelog: InternalGov-v2.0.5...InternalGov-v2.0.6

InternalGov-v2.0.5

27 Aug 08:34
e66c26f
Compare
Choose a tag to compare

What's Changed

  • handle missing preimage when syncing if its been removed by @Nadro-J in #59
  • correcting mistake by @Nadro-J in #60

Full Changelog: InternalGov-v2.0.4...InternalGov-v2.0.5

InternalGov-v2.0.4

30 Jul 18:22
a1d0b33
Compare
Choose a tag to compare

What's Changed

  • patching IndexError: list index out of range when sychronising by @Nadro-J in #57
  • set title to the title pulled from polkassembly/subsquare api by @Nadro-J in #58

Full Changelog: InternalGov-v2.0.3...InternalGov-v2.0.4