Light client bridge

Light client bridge Light client bridge will relay every block from source chain to target chain, normally for asset transfer just need to lock asset in some backing module or smart contract in source chain and mint the mapping asset in target chain Components Since the chain cannot directly access each other, the cross-chain data submission needs to be completed by a third party. This third party is the bridge relayers.
Read more...

xcmp research

XCMP Research xcm format implementation examples workflow xcm types transact call data(pallet & call index required) #[derive(Encode, Decode)] pub enum RelayTemplatePalletCall { #[codec(index = 100)] // the index should match the position of the module in `construct_runtime!` DoSomething(DoSomethingCall), } #[derive(Encode, Decode)] pub enum DoSomethingCall { #[codec(index = 0)] // the index should match the position of the dispatchable in the target pallet Something(u32), } #[derive(Encode, Decode)] pub enum CrowdloanPalletCall { #[codec(index = 27)] // the index should match the position of the module in `construct_runtime!
Read more...

Darwinia Bridge

Theory White Paper Principle Darwinia-Ethereum Bridge Projects Navigation Darwinia Bridge cross-chain overview Background ERC223 ERC721 Patricia Merkle Trees Mining difficulty calculate mmr relay game Bridger Relayers (aka. Bridgers) in Darwinia Network are offchain worker clients which help relay the headers and messages between source chains and target chains Background actix deprecated dj Shadow Services for bridger which retrieve header data from public chains and generate mmr proof Background ffi
Read more...

Phragmen election

The problem that Phragmén’s methods try to solve is that of electing a set of a given numbers of persons from a larger set of candidates. Phragmén discussed this in the context of a parliamentary election in a multi-member constituency; the same problem can, of course, also occur in local elections, but also in many other situations such as electing a board or a committee in an organization.

Read more...

Nest介绍

Nest 基础功能 —— Module Nest 主要特性中的模块化开发,就源自与此。Nest 使用 Module 来组织应用程序结构,每个应用程序至少有一个模块,即根模块。根模块是 Nest 开始
Read more...

Introduction to mxgraph

业务背景 业务流程图在线绘制需求在业务场景中广泛存在,常用业务需求如下: 流程图框架需求列表 需求名称 优先级 批量圈选(图形&连线圈选) P0 拉
Read more...

Introduction to nestjs

代码分析 入口main.ts import { NestFactory } from '@nestjs/core'; import { ApplicationModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(ApplicationModule); await app.listen(3000); } bootstrap(); NestFactory构造 public async create( module: any, serverOrOptions?: any, options?: NestApplicationOptions, ): Promise< INestApplication & (INestExpressApplication | INestFastifyApplication) > { const
Read more...

Introduction to Skynet

代码结构 首先要关注一下config.path文件。 skynet/example/config.path root = "./" luaservice = root.."service/?.lua;"..root.."test/?.lua;"..root.."examples/?.lua;"..root.."test/?/init.lua" lualoader = root .. "lualib/loader.lua" lua_path = root.."lualib/?.lua;"..root.."lualib/?/init.lua" lua_cpath = root .. "luaclib/?.so" snax = root.."examples/?.lua;"..root.."test/?.lua" root代表的是skynet所在的目录。 lu
Read more...