pendzl_contracts 1.0.2

Reusable implementations of contracts and traits for interaction with them.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) 2024 C Forge. All Rights Reserved.
// SPDX-License-Identifier: MIT
use ink::primitives::AccountId;

use crate::token::psp22::PSP22Error;
pub use crate::token::psp22::PSP22Internal;

pub use pendzl::traits::Balance;

pub trait PSP22MintableDefaultImpl: PSP22Internal {
    fn mint_default_impl(
        &mut self,
        account: AccountId,
        amount: Balance,
    ) -> Result<(), PSP22Error> {
        self._mint_to(&account, &amount)
    }
}