All - Activity - xonack - Algorand
Getting application arguments as ints in TEAL
Hi all,
I’m calling my application as follows
goa lapp call --app-arg "int:5".....
I seem to only be able to get a byteslices from invoking
txna ApplicationArgs 0
even though the argument is declared as an int in the goal call. Is there a way to retrieve the argument as an int instead of a byte…
HTTP 400 Bad Request: transaction : should have been authorized by but was actually authorized by
Hi all, I’m trying to submit an atomic transfer using the pythonSDK on the testnet composed of 2 ASA transfers laid out here. The first transfer is from my account to an application. I’m signing it with my own key. The second one is an asa transfer from the application to my account and uses an lo…
Atomic Transfer with token swap + ASC1 modification
I see in the Transaction Overview that there are 5 types of transactions. They all seem to be ASA related, which one would a modification request to an ASC1 fall under?
Atomic Transfer with token swap + ASC1 modification
I’m trying to transfer an ASA and modify a corresponding stateful ASC1 at the same time. Is it possible to group these two types of actions into an atomic transfer?
"reference to undefined label" error during compilation
Hi all, I’m creating a simple app to experiment with branching TEAL branching functionality. The approval program code is the following:
#pragma version 4
//check number of args is 1
txn NumAppArgs
int 1
==
// branch if 1 arg was supplied, return 1 ow
bnz valid_arg:
int 1
return
// return 2 if …
Dynamically representing the "weight" of a given ASA
Incredibly insightful @cusma. Thank you so much!
Dynamically representing the "weight" of a given ASA
Thank you for your response @cusma. The token behavior is definitely essential. This seems to leave us with 2 options to "modify" a given token:
Using a coupled ASA and a stateful ASC1, as you suggested, storing the state of the token in the smart contract. In this case, the use of a stateful con…
Dynamically representing the "weight" of a given ASA
Hi all! I’m working on an application that requires me to issue assets (ASAs) that serve as a placeholder for an object of changing state. Specifically, a single ASA should be able to represent its dynamic "weight" as it changes over time. Is there a way for me to store the current state attributes …