KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
demo-abi
★ 15
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
sCommon
:
A library sharing common code-base for my apps
tg-secret-santa-bot
:
Secret Santa bot for Telegram
rescript-json
:
Easily encode and decode JSON in Rescript
CS-Books
:
收藏与分享计算机类电子图书,包括编程语言、数据结构与算法,人工智能,计算机基础,大数据,设计模式,数据库,前端等分类图书,给与想要自学编程的人带来帮助
Predict-Power-System-Dynamics-Frequency-Domain
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
demo-abi
?
Download (.md)
## Algorand AVM ABI Demo of implementation for contract and client code that conforms to the ARC4 spec. https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0004.md ARC-004 or the Algorand ABI is a specification for encoding and decoding of data types and a standard for handling method calls. ## Contents contract.py - A PyTEAL contract that generates a set of methods that can be called as ABI methods contract.json - A JSON file describing the interface of the contract to be read by SDK clients js/ - Directory containing a TypeScript client to read in the contract.json file and call methods py/ - Directory containing a Python client to read in the contract.json file and call methods go/ - Directory containing a Go client to read in the contract.json file and call methods goal/ - Directory containing goal commands to call methods directly from the commandline ## Development ### Install Sandbox Install the [sandbox](https://github.com/algorand/sandbox) to start a local private node and start it with the `dev` configuration. If you're in the sandbox directory run: ``` ./sandbox up dev ``` ### Install PyTeal First make sure you have the correct version of [PyTEAL](https://github.com/algorand/pyteal) package installed. This currently requires the `feature/abi` branch, you can run `pip install -r requirements.txt` to pull it down ### Clone repository Next, clone this repository and cd to the root directory. ### Create the application: ./manage.sh create This will create the teal source files in approval.teal and clear.teal, copy them to the sandbox, and call the create app transaction. It will print the newly created app id and cache it in a local file `.app_id` you may have to modify the path to the sandbox shell script you've installed) ### If you update the PyTEAL source: ./manage.sh update This will recreate the teal source files, copy them to the sandbox, and call the update app transaction. It will use the cached app id from `.app_id` ### Configure Host and Ports You'll also need to tweak the hostnames/ports for the algod client in their respective directories depending on how your local sandbox is configured.