Statistics related with the current governance period.
Project description
Algorand Governance Oracle
It is an "oracle" for Algorand Governance.
- Mainnet Application ID:
will go here - Testnet Application ID:
109903471
Application State
We'll have how to use application state in other application.
Development and Update
How to create new application
from algorand_governance_oracle.deployment import create_oracle_application
from algorand_governance_oracle.clients import testnet_algod_client
private_key = "put your private key in here."
application_id = create_oracle_application(algod_client=testnet_algod_client, private_key=private_key)
print(application_id)
How to update application state with statistics
from algorand_governance_oracle.api import update
from algorand_governance_oracle.clients import testnet_algod_client
private_key = "put your private key in here."
application_id = "put your application id in here."
values = {
"period_identifier": "governance-period-4".encode(),
"eligible_committed_stake": 3788144125919121,
"ineligible_committed_stake": 295846447001842,
"eligible_governor_count": 32677,
"ineligible_governor_count": 1923,
"algo_amount_in_reward_pool": 70500000000000,
"updated_at": 1662985556,
}
transaction_id = update(
algod_client=testnet_algod_client,
private_key=private_key,
application_id=application_id,
values=values,
)
print(transaction_id)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file algorand-governance-oracle-0.2.0.tar.gz.
File metadata
- Download URL: algorand-governance-oracle-0.2.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf24764f8ab2b93db3b7b490d000e8bac6b045349977b00a4853bddcafad381b
|
|
| MD5 |
e331763b3225477a337343adea4b67cf
|
|
| BLAKE2b-256 |
e58c191583b4cbc603213592ed4e32a53c109b4a67dc2d7a8a7c77c81ec7a9e9
|
File details
Details for the file algorand_governance_oracle-0.2.0-py3-none-any.whl.
File metadata
- Download URL: algorand_governance_oracle-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f4109a5aed67f9536d6f865ea825ec0b85a12cbf3b457f612ad4afc711b92e2
|
|
| MD5 |
65efcada1964d8b83e7f3f9795207f18
|
|
| BLAKE2b-256 |
9dd27209c7bc0c84071876dda4125d63729e8a02e05997f9a3f9b206040fae67
|