Menu
My Site LogoMy Site LogoGliaswapDocs
GitHub
🌜
🌞
My Site LogoMy Site LogoGliaswap
  • Docs
  • GitHub
  • Start
    • Introduction
  • Run Gliaswap
    • Run Gliaswap
  • Product
    • Gliaswap Overview
    • Fee Structure
  • Protocol
    • Swap sUDT/CKB
      • Cell Structure
      • Transaction Structure
        • Swap
        • Pool
      • Script
        • Info Cell Type Script
        • Info Cell Lock Script
        • Swap Request Cell Lock Script
        • Liquidity Request Cell Lock Script
    • Swap sUDT/sUDT
      • Cell Structure
      • Transaction Structure
        • Swap
        • Pool
      • Script
        • Info Cell Type Script
        • Info Cell Lock Script
        • Swap Request Cell Lock Script
        • Liquidity Request Cell Lock Script
  • Reference
    • FAQ

Info Cell Lock Script

Rules 1 - Verify if lock.args is consistent with info type#

if count(self.lock.group_inputs) != 2
return fail
let info = group_inputs[0]
let pool = group_inputs[1]
if hash(ckb | pool.type_hash) != self.lock.args[0..32]
|| info.type_hash != self.lock.args[32..64]
return fail
return success
Edit this page
Previous
« Info Cell Type Script
Next
Swap Request Cell Lock Script »
Copyright © 2021 GliaTeam.