AcalaNetwork / chopsticks

Create parallel reality of your Substrate network.
Apache License 2.0
138 stars 84 forks source link

Configure runtime constants in chopsticks #780

Closed lvndry closed 5 months ago

lvndry commented 5 months ago

Hello,

There's very little documentation how we can configure chopsticks. I'd like to change the bondingDurationto 0 so that I can withdraw unbonded amount instantly. Could you tell me if or how it can be done ?

qiweiii commented 5 months ago

may be a duplicate of this issue: https://github.com/AcalaNetwork/chopsticks/issues/594

xlc commented 5 months ago

The process will be pretty much same as how people change it mainnet. i.e.

lvndry commented 5 months ago

Okay I was excepting to be able to be able to override this behavior by setting the dev_storage or import-storage or a RPC call. My use case is simply that I need to be able to bound and then unbound and withdraw in the same minute. Is there a solution that don't require to fork the SDK ?

ermalkaleci commented 5 months ago

yes, fast forward in the future dev_newBlock({ unsafeBlockHeight: <future_block> })