Skip to content

tezid/contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TezID Contracts

These are the Tezos contracts used by TezID.

They are written in SmartPy.

Contracts

Import

# Store v2.0.0 
Store = sp.io.import_script_from_url("https://tezid.infura-ipfs.io/ipfs/QmYbSGKoJiDve7WTmU452wxGivwx1Q2R9iNyNw3gyYBGhu")
# Controller v4.0.0 
Controller = sp.io.import_script_from_url("https://tezid.infura-ipfs.io/ipfs/Qma7XGTEjczQcjpAcC3cgV8j7VEWgwp442DnnLn2UyhgZS")

Init

./scripts/init-env.sh
source bin/activate

Test

spy kind all tests/tezid.py output --html

Integration

See here for integration examples.

spy kind all tests/integrations.py output --html

Store API

Entrypoints

getProofs
  parameters:
    address: TAddress
    callback_address: TAddress

  Get all proofs for `address` and transfer to `callback_address`.

Views

getProofsForAddress
  parameters:
    address: TAdress
  result:
    TProofs (see contract/types.py)  

  Get all proofs for `address`.

enjoy.

About

TezID Tezos Contracts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published