algorand / algorand/pyteal

ABI: Support sequencing bare app call and method invocations

Abierto
#393 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Team Scytale
Lenguaje dominante
Python
Estrellas
288
Forks
138
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

## Problem

As of writing, PyTeal doesn't support the following clause from https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0004.md#oncompletion-actions-and-creation:

> If a Contract elects to allow bare Application calls for some OnCompletion actions, then that Contract SHOULD also allow any of its methods to be called with those OnCompletion actions, as long as this would not cause undesirable or nonsensical behavior.

The story's request is to provide a configuration mechanism enabling app developers to choose desired behavior.
* For each OnCompletion action, the developer can opt-in for invoking associated bare app call handler + method handler.
* Backwards compatibility concern: If there's a desire to change default Router behavior from _not_ sequencing to sequencing, we must either:
* Implement a Router-level (or similar) versioning and/or feature flag scheme enabling developers to upgrade pyteal _without_ changing generated TEAL.
* Reach team agreement that a minor or major pyteal version bump is sufficient notice for behavior change.

## Solution

## Dependencies

## Urgency

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.