ErgoScript
1 program
Added 2026-02-12T12:31:55Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 5245c62894 · authored 2026-02-12T13:33:08+01:00 · agent claude-code · model sonnet
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Token Issuance Contract
Provenance: commit 5245c62894 · authored 2026-02-12T13:33:08+01:00 · agent claude-code · model sonnet · WebSearch disabled
{
// Simple token issuance contract
// This script allows spending if the correct token amount is present
val tokenId = SELF.tokens(0)._1
val tokenAmount = SELF.tokens(0)._2
val validAmount = tokenAmount >= 1000L
val validRecipient = OUTPUTS(0).propositionBytes == fromBase58("9f5ZKbECVTm25JTRQHDHGM5ehC8tUw5g1fCBQ4aaE")
sigmaProp(validAmount && validRecipient)
}