Algorand Governance Oracle
It is an "oracle" for Algorand Governance.
- Mainnet Application ID:
will go here - Testnet Application ID:
109509554
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)
Metadata
Release files for algorand-governance-oracle 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| algorand-governance-oracle-0.1.0.tar.gz | 4.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| algorand_governance_oracle-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / algorand-governance-oracle-0.1.0.tar.gz
| Download URL | algorand-governance-oracle-0.1.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65bb2c9a8c0886e94c2c2a953b45c999a4c3d660b586aa2a72681bb59daed65c
|
|
BLAKE2b-256 checksum How to use checksums |
c88c08162e1d3b6d2e3a091c33a31dd7f5df2be1e04c3deae17b83b8a39fa749
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / algorand_governance_oracle-0.1.0-py3-none-any.whl
| Download URL | algorand_governance_oracle-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d456ac5ef9598d7eefc2a6c59ed71430fae3e08de873a15a5f1eec71f79480ae
|
|
BLAKE2b-256 checksum How to use checksums |
7d04aa13943f1728990a5311a1399b2934e6953b3aa7ffb5774858fb8aad4bed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Security for algorand-governance-oracle 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.