Giter VIP home page Giter VIP logo

substrate-poe's Introduction

基于substrate实现的链上存证功能

1.创建存证

  • 初始链状态中的存储对应的存证为none

avatar

  • 创建存证,再次查看,存证上链

avatar

  • 创建存证成功测试用例 fn create_claim_works()
  • 创建存证失败测试用例-存证已存在 fn create_claim_failed_when_claim_already_exist()
  • 创建存证失败测试用例-存证长度超出限制 fn create_claim_failed_when_length_exceeded()

2.撤销存证

  • 执行poe模块的revoke撤销函数,撤销存证

    avatar

  • 再次查看链上存储,发现为none,存证撤销成功

    avatar

  • 撤销存证成功用例 fn revoke_claim_works()

  • 撤销存证失败用例-存证不存在 fn revoke_claim_failed_when_claim_not_exist()

3.转移存证

  • 执行poe的transfer函数,转移存证

    avatar

    avatar

  • 检查存证发现alice的存证已被转移到bob账户

    avatar

  • 转移存在成功测试用例 fn transfer_claim_works()

  • 转移存证失败测试用例-存证不存在 fn transfer_claim_failed_when_claim_not_exist()

substrate-poe's People

Contributors

kkthmyh avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.