icdevsorg / axon

DAO in a box
https://icdevs.org/
Other
12 stars 8 forks source link

'Axon Service' has voting power #11

Closed Gekctek closed 1 year ago

Gekctek commented 1 year ago

The other day I minted 999,999,999 tokens, but didn't give them to anyone so they went to the Axon Service according to the ledger image

Now I have a problem where I can't vote on anything because I have ~0% voting power. Is this intentional? How do I get myself out of this mess without abandoning the axon?

image

skilesare commented 1 year ago

Ha! Umm...I think you're screwed. 😂

I guess it would make sense to remove the axon tokens from the threshold needed for a quorum. Give me a bit and I'll try to get a fix out....Or submit a pull request if you can find the code :)

Gekctek commented 1 year ago

@skilesare Im having weird issues with the code. Even though im using dfx 12.1, it doesnt like 'async*'

Building canisters...
Error: Failed while trying to build all canisters.
Caused by: Failed while trying to build all canisters.
  The build step failed for canister 'renrk-eyaaa-aaaaa-aaada-cai' (AxonTest) with an embedded error: Failed to build Motoko canister 'AxonTest'.: Failed to compile Motoko.: Failed to run 'moc'.: The command '"/home/gekctek/.cache/dfinity/versions/0.12.1/moc" "/home/gekctek/git/axon/src/Axon/Axon.mo" "-o" "/home/gekctek/git/axon/.dfx/local/canisters/AxonTest/AxonTest.wasm" "-c" "--debug" "--idl" "--stable-types" "--public-metadata" "candid:service" "--actor-idl" "/home/gekctek/git/axon/.dfx/local/canisters/idl/" "--actor-alias" "Axon" "rno2w-sqaaa-aaaaa-aaacq-cai" "--actor-alias" "AxonTest" "renrk-eyaaa-aaaaa-aaada-cai" "--actor-alias" "frontend" "rdmx6-jaaaa-aaaaa-aaadq-cai" "--actor-alias" "frontendTest" "qoctq-giaaa-aaaaa-aaaea-cai" "--package" "StableBuffer" ".vessel/StableBuffer/v0.2.0/src" "--package" "StableTrieMap" ".vessel/StableTrieMap/main/src" "--package" "array" ".vessel/array/v0.2.0/src" "--package" "base" ".vessel/base/aafcdee0c8328087aeed506e64aa2ff4ed329b47/src" "--package" "icrc1" ".vessel/icrc1/7af28bbfa7d41a20297ff6e349ee0374f9d1b576/src" "--package" "itertools" ".vessel/itertools/main/src" "--package" "map" ".vessel/map/v7.0.0/src" "--package" "map_7_0_0" ".vessel/map_7_0_0/v7.0.0/src" "--package" "matchers" ".vessel/matchers/v1.2.0/src" "--package" "stablebuffer_0_2_0" ".vessel/stablebuffer_0_2_0/v0.2.0/src"' failed with exit status 'exit status: 1'.
Stdout:

Stderr:
/home/gekctek/git/axon/src/Axon/Axon.mo:131.87-131.88: syntax error [M0001], unexpected token '*', expected one of token or <phrase> sequence:
  <typ_pre>

thoughts? i havent used it before

i started a branch https://github.com/icdevs/axon/pull/12

skilesare commented 1 year ago

I manually downloaded the latest moc and put it in my dfx cache for 0.12.1. I guess I should have mentioned that. Given that 8.1 is going to save a ton of space, I'll hopefully get that integrated quickly as well.

Feel free to update the dfx to 0.13.0 beta and it should work. ᐧ

On Fri, Feb 3, 2023 at 3:26 PM Ethan Celletti @.***> wrote:

@skilesare https://github.com/skilesare Im having weird issues with the code. Even though im using dfx 12.1, it doesnt like 'async*'

Building canisters... Error: Failed while trying to build all canisters. Caused by: Failed while trying to build all canisters. The build step failed for canister 'renrk-eyaaa-aaaaa-aaada-cai' (AxonTest) with an embedded error: Failed to build Motoko canister 'AxonTest'.: Failed to compile Motoko.: Failed to run 'moc'.: The command '"/home/gekctek/.cache/dfinity/versions/0.12.1/moc" "/home/gekctek/git/axon/src/Axon/Axon.mo" "-o" "/home/gekctek/git/axon/.dfx/local/canisters/AxonTest/AxonTest.wasm" "-c" "--debug" "--idl" "--stable-types" "--public-metadata" "candid:service" "--actor-idl" "/home/gekctek/git/axon/.dfx/local/canisters/idl/" "--actor-alias" "Axon" "rno2w-sqaaa-aaaaa-aaacq-cai" "--actor-alias" "AxonTest" "renrk-eyaaa-aaaaa-aaada-cai" "--actor-alias" "frontend" "rdmx6-jaaaa-aaaaa-aaadq-cai" "--actor-alias" "frontendTest" "qoctq-giaaa-aaaaa-aaaea-cai" "--package" "StableBuffer" ".vessel/StableBuffer/v0.2.0/src" "--package" "StableTrieMap" ".vessel/StableTrieMap/main/src" "--package" "array" ".vessel/array/v0.2.0/src" "--package" "base" ".vessel/base/aafcdee0c8328087aeed506e64aa2ff4ed329b47/src" "--package" "icrc1" ".vessel/icrc1/7af28bbfa7d41a20297ff6e349ee0374f9d1b576/src" "--package" "itertools" ".vessel/itertools/main/src" "--package" "map" ".vessel/map/v7.0.0/src" "--package" "map_7_0_0" ".vessel/map_7_0_0/v7.0.0/src" "--package" "matchers" ".vessel/matchers/v1.2.0/src" "--package" "stablebuffer_0_2_0" ".vessel/stablebuffer_0_2_0/v0.2.0/src"' failed with exit status 'exit status: 1'. Stdout:

Stderr: /home/gekctek/git/axon/src/Axon/Axon.mo:131.87-131.88: syntax error [M0001], unexpected token '*', expected one of token or sequence:

thoughts? i havent used it before i started a branch #12 — Reply to this email directly, view it on GitHub , or unsubscribe . You are receiving this because you were mentioned.Message ID: ***@***.***>

-- Austin Fatheree twitter: @afat http://twitter.com/afat