I’ve been playing with actor classes and mainly creating canisters on the fly for storage (cdn).
So basically I want to create a mini big map ish storage solution. I can create as many canisters as I want on the fly but my question is how do I set a canister compute allocation and memory allocation from motoko?
In dfx I can use
-c, --compute-allocation <compute-allocation> Specifies the canister's compute allocation. This should be a percent in the range [0..100]
--memory-allocation <memory-allocation> Specifies how much memory the canister is allowed to use in total. This should be a value in the range [0..256 TB]
but can’t seem to find a way to do it in code. Any help would be appreciated.