Giter Site home page Giter Site logo

rssalessio / algorand-royalty-fees Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 4.0 163 KB

This is a short tutorial that explains how to implement Royalty Fees using Inner Transactions and Teal v5 capabilities in the Algorand blockchain

License: MIT License

Shell 14.38% TypeScript 27.69% Python 57.94%
blockchain royalty-fees algorand pyteal

algorand-royalty-fees's Introduction

Welcome to my personal GitHub page!

I am a researcher in Reinforcement Learning and Control methodology. I have a Ph.D. in Electrical Engineering from KTH Royal Insitute of Technology (Stockholm), where I was supervised by Prof. Proutiere Alexandre at the Division of Decision and Control Systems.

My research involves the study of Reinforcement Learning and data-driven control, including

  • Exploration in Reinforcement Learning
  • Reinforcement learning methodology
  • Conformal prediction
  • Learning in control
  • Poisoning attacks on Sequential Decision Makers (Reinforcement Learning, Adaptive Control, Data-Driven Control)
  • Attack detectability

Check out also my website

My Github Stats

Anurag's GitHub stats

Some important Repos

algorand-royalty-fees's People

Contributors

as2226 avatar rssalessio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

algorand-royalty-fees's Issues

Running Project Inconveniences

~/github/algorand-royalty-fees$ source scripts/start_network.sh
goal not found. Please install goal and try again

Having trouble finding tutorials and resources on how to install goal-cli


Followed Guide here: https://developer.algorand.org/docs/run-a-node/setup/install/#installation-with-a-package-manager
to install goal-cli
first script worked fine, second script killed terminal.

the process kept running, stop_network did not stop it from running on pc.
The process kept running under the user algorand, and algorad file

Definitely bad practice but had to uninstall algorand to stop the process from running

Error compiling pyTeal smartcontract

This is the version of pyTEAL:

Collecting pyteal
Downloading pyteal-0.13.0-py3-none-any.whl (183 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 183.6/183.6 kB 27.9 MB/s eta 0:00:00
Collecting py-algorand-sdk
Downloading py_algorand_sdk-1.13.1-py3-none-any.whl (159 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 159.0/159.0 kB 38.1 MB/s eta 0:00:00
Collecting pycryptodomex<4,>=3.6.0
Downloading pycryptodomex-3.14.1-cp35-abi3-manylinux2010_x86_64.whl (2.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 67.2 MB/s eta 0:00:00
Collecting msgpack<2,>=1.0.0
Downloading msgpack-1.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (323 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 323.7/323.7 kB 54.0 MB/s eta 0:00:00
Collecting pynacl<2,>=1.4.0
Downloading PyNaCl-1.5.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (856 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 856.7/856.7 kB 68.9 MB/s eta 0:00:00
Collecting cffi>=1.4.1
Downloading cffi-1.15.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (446 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 446.3/446.3 kB 54.9 MB/s eta 0:00:00
Collecting pycparser
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Installing collected packages: msgpack, pycryptodomex, pycparser, cffi, pynacl, py-algorand-sdk, pyteal
Successfully installed cffi-1.15.0 msgpack-1.0.3 py-algorand-sdk-1.13.1 pycparser-2.21 pycryptodomex-3.14.1 pynacl-1.5.0 pyteal-0.13.0

Compile error:

python3 src/smart_contract.py src/approval.teal src/clear.teal
Traceback (most recent call last):
File "/root/algorand-royalty-fees/src/smart_contract.py", line 25, in
def defaultTransactionChecks(txnId: Int) -> TealType.none:
File "/usr/local/lib/python3.10/dist-packages/pyteal/ast/subroutine.py", line 356, in call
return SubroutineFnWrapper(
File "/usr/local/lib/python3.10/dist-packages/pyteal/ast/subroutine.py", line 302, in init
self.subroutine = SubroutineDefinition(
File "/usr/local/lib/python3.10/dist-packages/pyteal/ast/subroutine.py", line 46, in init
impl_params, anns, arg_types, byrefs = self._validate()
File "/usr/local/lib/python3.10/dist-packages/pyteal/ast/subroutine.py", line 82, in _validate
raise TealInputError(
pyteal.TealInputError: Function has return of disallowed type TealType.none. Only Expr is allowed

Python Version:

python3 --version
Python 3.10.4

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.