阿萍的博客

阿萍的博客

jest 忽略某些目录

在 jest.config.js 中添加 testPathIgnorePatterns: ['目录1', '目录2']/** @type {import('ts-jest').JestConfi...

OpenZeppelin 如何升级合约

Zeppeline 使用几种代理模式进行实现合约升级。1 Inherited Storageproxy 和 contract 都需要继承相同的存储结构 UpgradeabilityStorage...

请求跨域问题解决

报错:Access to XMLHttpRequest at 'http://10.10.10.10:3019/sudt-issuer/api/v1' from origin 'http://l...

Cocos Creator vs Phaser

1 cocos creatorCocos2d-x is an open-source and cross platform open source free 2D game engine for...

NRC-721

NRC-721 是 Nervos 上创建和处理 NFT 的标准。NFT 相关信息被记录在 factory cell 和 token cell 中。factory cell 存储一些通用的数据,可...

Nervos CKB 中的数据结构

1 Cellpub struct CellOutput { pub capacity: Capacity, pub data: Vec<u8>, ...

跨链调研

跨链:将资产从一条链转到另一条链。比如 ETH 上的 eth@ETH 跨到 CKB 上成为 eth@ckb,即 eth@ETH --> eth@CKB,大概的过程是,锁住 eth@ETH,...

Yarn - could not detect network

配置代理(http://127.0.0.1:8118)后,可能出现 yarn install 失败,提示网络错误。解决方式一:yarn config set proxy http://127.0...

Force Bridge 阅读

跨链理论:Vitalik Buterin. Chain Interoperability. https://www.r3.com/wp-content/uploads/2017/06/chain...

划分型动态规划

1 解码方法有一个消息包含A-Z通过以下规则编码'A' -> 1'B' -> 2...'Z' -> 26现在给你一个加密过后的消息,问有几种解码的方式。输入: "12...