잠금 가능한 통화 구현
시작하기 전에
필요한 종속성 선언하기
use frame_support::{ dispatch::DispatchResult, traits::{Currency, LockIdentifier, LockableCurrency, WithdrawReasons}, };const EXAMPLE_ID: LockIdentifier = *b"example ";
커스텀 팔렛 타입 선언하기
필요한 메서드를 사용하여 실행 가능한 함수 생성하기
예시
관련 자료
Last updated