Releases: ChaosDAO-org/InternalGov-2.0
InternalGov-v2.2.12
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
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
- 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
InternalGov-v2.2.8
What's Changed
- escape_underscores & escape_asterisks set to False when converting markdown for discord by @x676f64 @Nadro-J in #92
Full Changelog: InternalGov-v2.2.7...InternalGov-v2.2.8
InternalGov-v2.2.7
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.
- JSON key
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
What's Changed
Full Changelog: InternalGov-v2.1.6...InternalGov-v2.2.6
InternalGov-v2.1.6
What's Changed
Full Changelog: InternalGov-v2.0.6...InternalGov-v2.1.6
InternalGov-v2.0.6
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
- This release comes with a wide range of new features & bug fixes. For more detail please visit: discord.py v2.4.0 release notes
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.
-
requests==2.32.3
-
pillow==11.0.0
Full Changelog: InternalGov-v2.0.5...InternalGov-v2.0.6
InternalGov-v2.0.5
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
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