Skip to content

Commit

Permalink
Unifty test data and sample workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonpaulos committed Oct 11, 2023
1 parent d2aeca7 commit 52fecbf
Show file tree
Hide file tree
Showing 38 changed files with 4,716 additions and 1,182 deletions.
12 changes: 2 additions & 10 deletions sampleWorkspace/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,10 @@
"name": "Debug Transaction Group",
"debuggerPath": "stuff-to-deal",

// "simulationTraceFile": "${workspaceFolder}/recursive-resp.json",
// "appSourceDescriptionFile": "${workspaceFolder}/recursive-group-resources.json",
// "program": "${workspaceFolder}/recursive-inner-approval.teal",

"simulationTraceFile": "${workspaceFolder}/simulate-response.json",
"appSourceDescriptionFile": "${workspaceFolder}/txn-group-sources.json",
"simulationTraceFile": "${workspaceFolder}/slot-machine/simulate-response.json",
"appSourceDescriptionFile": "${workspaceFolder}/slot-machine/sources.json",
"program": "${workspaceFolder}/stack-scratch.teal",

// "simulationTraceFile": "${workspaceFolder}/box-state-changes-resp.json",
// "appSourceDescriptionFile": "${workspaceFolder}/state-changes-sources.json",
// "program": "${workspaceFolder}/state-changes.teal",

"stopOnEntry": true,
"trace": false
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

92 changes: 0 additions & 92 deletions sampleWorkspace/pseudo-README

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
42 changes: 42 additions & 0 deletions sampleWorkspace/slot-machine/fake-random.teal
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#pragma version 6
txn ApplicationID
bz label1
txna ApplicationArgs 0
pushbytes 0xbf8acaee // 0xbf8acaee
==
assert
global Round
itob
pushbytes 0x23 // "#"
concat
pushbytes 0x636f756e746572 // "counter"
app_global_get
dup
pushint 1
+
pushbytes 0x636f756e746572 // "counter"
swap
app_global_put
itob
concat
dup
sha512_256
pushint 0
extract_uint64
txna ApplicationArgs 1
btoi
%
itob
swap
concat
pushbytes 0x151f7c75 // 0x151f7c75
swap
concat
log
b label2
label1:
pushbytes 0x636f756e746572 // "counter"
pushint 0
app_global_put
label2:
pushint 1
1 change: 1 addition & 0 deletions sampleWorkspace/slot-machine/fake-random.teal.tok.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions sampleWorkspace/slot-machine/random-byte.teal
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#pragma version 6
txn ApplicationID
bz label1
txna ApplicationArgs 0
pushbytes 0x2426bdfc // 0x2426bdfc
==
assert
itxn_begin
pushint 6
itxn_field TypeEnum
txna Applications 1
itxn_field ApplicationID
pushbytes 0xbf8acaee // 0xbf8acaee
itxn_field ApplicationArgs
txna ApplicationArgs 1
len
pushint 2
-
itob
itxn_field ApplicationArgs
itxn_submit
pushint 0
itxn NumLogs
pushint 1
==
assert
itxna Logs 0
dup
extract 12 0
swap
extract 4 8
btoi
txna ApplicationArgs 1
extract 2 0
swap
pushint 1
extract3
pushbytes 0x151f7c75 // 0x151f7c75
swap
concat
swap
concat
log
label1:
pushint 1
return
1 change: 1 addition & 0 deletions sampleWorkspace/slot-machine/random-byte.teal.tok.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 52fecbf

Please sign in to comment.