open-runtime-module-library icon indicating copy to clipboard operation
open-runtime-module-library copied to clipboard

Expose ExistentialDeposits as constant

Open gregdhill opened this issue 2 years ago • 3 comments

Downstream systems need an easy way to query these, not sure if this is currently possible since the Config type parameter is not a constant so won't be included in the pallet metadata.

gregdhill avatar Jan 24 '22 10:01 gregdhill

The main issue is that it is not really a constant for Acala https://github.com/AcalaNetwork/Acala/blob/35078ea2b2d0e3a3937a075c54d94c77faea2f36/runtime/acala/src/lib.rs#L770-L793

Even if they are constant, I am not sure what's the best way to expose a Key Value mapping via metadata

xlc avatar Jan 24 '22 10:01 xlc

Perhaps we can expose some RPC call for this instead? Would definitely be useful for wallets and other integrations.

gregdhill avatar Jan 24 '22 11:01 gregdhill

Yep that will be a good solution.

xlc avatar Jan 25 '22 01:01 xlc