All - Activity - user123 - Algorand

How to create a custom indexer?

Is querying the default indexer “the” approach to build a custom indexer? It’s something that would work for me too, just wondering about all the possible options.


How to create a custom indexer?

Any guides to create a custom indexer (e.g. to store only transactions specific to my app, faster queries)?


Get transactions by application-id

I just got this error too, for the address-role parameter. After browsing a while, found that it was added to the disabled params here: Disable Parameters in REST API (#892) · algorand/indexer@1216e79 · GitHub It would be helpful if this was added to the release notes - there’s no mention of it.


Subroutine for security checks (RekeyTo, AssetCloseTo etc)?

Oh, replying to my first question, I briefly forgot the fee pooling - another transaction in the group could be paying the fee. This explains the <= min fee check. Which answers my second question probably, all my lsig transactions have a 0 fee because other transaction in the group pays their fee.…


Subroutine for security checks (RekeyTo, AssetCloseTo etc)?

Missed to ask: why do we allow fee < min fee? Probably because it’s not a security issue? Any reason to not assert fee == min fee?
Also, fee <= min fee or fee == min fee would fail if the transaction has a calculated fee (size * fee per byte) and it’s > min fee, how to handle that?


Update / migration policy for apps?

Hi,
I’m writing smart contracts for a DAO. Ideally I’d like to keep everything immutable (for true decentralization), but there can be situations where updates are required, like fixing bugs / security improvements / using new TEAL features / (not sure if needed) updates for non backwards compatibl…


Subroutine for security checks (RekeyTo, AssetCloseTo etc)?

Thanks! I made the suggested changes and will be migrating everything to PyTeal.


Subroutine for security checks (RekeyTo, AssetCloseTo etc)?

Trying to refactor recurrent security checks, like these:

gtxn 1 Fee
int 1000
<=
gtxn 1 AssetCloseTo
global ZeroAddress
==
&&
gtxn 1 RekeyTo
global ZeroAddress
==
&&
... 

Ideally I’d like to add these checks as a one liner, to all the transactions. Not being able to figure out how to far - can’t pu…


Can't build node from source

Followed the instructions to build a node for MacOS: GitHub - algorand/go-algorand: Algorand's official implementation in Go. When running make install, it can’t find a c++ header:

# github.com/algorand/go-algorand/data/committee/sortition
sortition.cpp:2:10: fatal error: 'boost/math/distributions…