-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support fellowshipTreasury #10323
Comments
Taking this one |
I can confirm the FellowshipTreasury pallet does exist on collectives and can be queried import { getScProvider, WellKnownChain } from "@polkadot-api/sc-provider"
import { getChain } from "@polkadot-api/node-polkadot-provider"
import { createClient } from "@polkadot-api/client"
import { polkadot_collectives } from "@substrate/connect-known-chains"
import Collectives from "./descriptors/collectives"
const scProvider = getScProvider()
const collectivesChain = getChain({
provider: scProvider(WellKnownChain.polkadot).addParachain(polkadot_collectives),
keyring: [],
})
const relayChain = createClient(collectivesChain)
const collectives = relayChain.getTypedApi(Collectives)
console.log("aaa", await collectives.query.FellowshipTreasury.Proposals.getEntries()) Result: aaa [] In polkadot JS whats stopping the treasury page from being shown is the needs API dependency on |
Actually yeah, there is just no treasury pallet on collectives |
Thanks for looking into this. Couple things:
|
I believe pjs apps supports to pallet name alias. For example, for the Council page, it works for |
the fellowshipTreasury pallet is completely different from the current treasury pallet. the latter seems dated. two questions
|
the pallet are the same one just with maybe different versions. the treasury page have to support all the versions of the treasury pallet. for development and testing purpose, just use chopsticks to fork mainnet and you can then make Alice as a member and do whatever you want. let me know if you need some details instructions on how to do it |
On the polkadot collective chain, a fellowshipTreasury is introduced with polkadot-fellows/runtimes#109
We should be able to config pjs apps somehwere to enable the Treasury page for it.
The text was updated successfully, but these errors were encountered: