-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: add pallet-contracts #5
Conversation
6294570
to
a2e77bd
Compare
Also decreases visibility of BalancesCall import.
type CallFilter = AllowBalancesCall; | ||
type DepositPerItem = DepositPerItem; | ||
type DepositPerByte = DepositPerByte; | ||
type CallStack = [pallet_contracts::Frame<Self>; 23]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: probably doesnt matter for now, but Trappist has this configured as 5: https://github.com/paritytech/trappist/blob/a07b7e84224c53d16dbd1d5e3fb8797f33d12723/runtime/trappist/src/contracts.rs#L58
pub const DepositPerByte: Balance = deposit(0, 1); | ||
pub Schedule: pallet_contracts::Schedule<Runtime> = schedule::<Runtime>(); | ||
pub const DefaultDepositLimit: Balance = deposit(1024, 1024 * 1024); | ||
pub const CodeHashLockupDepositPercent: Perbill = Perbill::from_percent(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: probably doesnt matter for now, but Trappist has this configured as 30%: https://github.com/paritytech/trappist/blob/a07b7e84224c53d16dbd1d5e3fb8797f33d12723/runtime/trappist/src/contracts.rs#L38
# This is the 1st commit message: refactor: general # This is the commit message #2: init # This is the commit message #3: begin refactor # This is the commit message #4: refactor: error handling # This is the commit message #5: tests: add error handling tests # This is the commit message #6: WIP # This is the commit message #7: finalise error handling # This is the commit message #8: refactor: easier review
No description provided.