So what is Fosaki 2.0?What are the improvements?That is to say,the smart contract dapp developed by Fosaki FORGE Force Engineering based on the horseshoe lotus MATIC is open and transparent,100%open source,
据说Classic经典矩阵仅为第一个搭建初始网体的矩阵,接下来还会有更加创新和深度的Boost加强矩阵版本以及FORCE原力矩阵,当三个矩阵classic+boost+force全部上线后,
To put it simply,the smart contract dapp based on Ethereum is open and transparent.It is 100%open and open source.The player's access is ETH.There is no platform currency,no formula,and the project party can't tamper with it.The contract will be implemented forever.
一、什么是forsage(佛萨奇)?
forsage(佛萨奇),是基于全球第二的加密货币以太坊的公链开发的一个智能合约,百分百开源,百分百去中心化,一旦运行,不可篡改。
接下来几个基础步骤,使用以下代码段更新您的pallet代码(如果您不想使用模板代码,请跳过此步骤):
#![cfg_attr(not(feature="std"),no_std)]
pub use pallet::*;
#[frame_support::pallet]
pub mod pallet{
use frame_support::pallet_prelude::*;
use frame_system::pallet_prelude::*;
use frame_support::{
sp_runtime::traits::Hash,
traits::{Randomness,Currency,tokens::ExistenceRequirement},
transactional
};
use sp_io::hashing::blake2_128;
#[cfg(feature="std")]
use frame_support::serde::{Deserialize,Serialize};
//ACTION#1:Write a Struct to hold Kitty information.
//ACTION#2:Enum declaration for Gender.
//ACTION#3:Implementation to handle Gender type in Kitty struct.
#[pallet::pallet]
#[pallet::generate_store(pub(super)trait Store)]
pub struct Pallet<T>(_);
///Configure the pallet by specifying the parameters and types it depends on.
#[pallet::config]
pub trait Config:frame_system::Config{
///Because this pallet emits events,it depends on the runtime's definition of an event.
type Event:From<Event<Self>>+IsType<<Self as frame_system::Config>::Event>;
///The Currency handler for the Kitties pallet.
type Currency:Currency<Self::AccountId>;