5
5
main:
6
6
intcblock 1 0 42 100
7
7
bytecblock 0x151f7c75 "Hello, Algorand!"
8
- // contracts/ScratchStorage/contract.algo.ts:26-27
8
+ // contracts/ScratchStorage/contract.algo.ts:27-28
9
9
// @contract({ scratchSlots: [0, 1, 2, { from: 10, to: 20 }] }) // This reserves slots 0, 1, 2 and slots 10-20
10
10
// export default class ScratchStorage extends Contract {
11
11
txn NumAppArgs
@@ -15,28 +15,28 @@ main:
15
15
match main_demonstrateScratchStorage_route@3 main_readFromGroupTransaction_route@4 main_readBytesFromGroupTransaction_route@5
16
16
17
17
main_after_if_else@12:
18
- // contracts/ScratchStorage/contract.algo.ts:26-27
18
+ // contracts/ScratchStorage/contract.algo.ts:27-28
19
19
// @contract({ scratchSlots: [0, 1, 2, { from: 10, to: 20 }] }) // This reserves slots 0, 1, 2 and slots 10-20
20
20
// export default class ScratchStorage extends Contract {
21
21
intc_1 // 0
22
22
return
23
23
24
24
main_readBytesFromGroupTransaction_route@5:
25
- // contracts/ScratchStorage/contract.algo.ts:93
25
+ // contracts/ScratchStorage/contract.algo.ts:85
26
26
// @abimethod({ readonly: true })
27
27
txn OnCompletion
28
28
!
29
29
assert // OnCompletion is not NoOp
30
30
txn ApplicationID
31
31
assert // can only call when not creating
32
- // contracts/ScratchStorage/contract.algo.ts:26-27
32
+ // contracts/ScratchStorage/contract.algo.ts:27-28
33
33
// @contract({ scratchSlots: [0, 1, 2, { from: 10, to: 20 }] }) // This reserves slots 0, 1, 2 and slots 10-20
34
34
// export default class ScratchStorage extends Contract {
35
35
txna ApplicationArgs 1
36
36
btoi
37
37
txna ApplicationArgs 2
38
38
btoi
39
- // contracts/ScratchStorage/contract.algo.ts:93
39
+ // contracts/ScratchStorage/contract.algo.ts:85
40
40
// @abimethod({ readonly: true })
41
41
callsub readBytesFromGroupTransaction
42
42
dup
@@ -53,21 +53,21 @@ main_readBytesFromGroupTransaction_route@5:
53
53
return
54
54
55
55
main_readFromGroupTransaction_route@4:
56
- // contracts/ScratchStorage/contract.algo.ts:80
56
+ // contracts/ScratchStorage/contract.algo.ts:74
57
57
// @abimethod({ readonly: true })
58
58
txn OnCompletion
59
59
!
60
60
assert // OnCompletion is not NoOp
61
61
txn ApplicationID
62
62
assert // can only call when not creating
63
- // contracts/ScratchStorage/contract.algo.ts:26-27
63
+ // contracts/ScratchStorage/contract.algo.ts:27-28
64
64
// @contract({ scratchSlots: [0, 1, 2, { from: 10, to: 20 }] }) // This reserves slots 0, 1, 2 and slots 10-20
65
65
// export default class ScratchStorage extends Contract {
66
66
txna ApplicationArgs 1
67
67
btoi
68
68
txna ApplicationArgs 2
69
69
btoi
70
- // contracts/ScratchStorage/contract.algo.ts:80
70
+ // contracts/ScratchStorage/contract.algo.ts:74
71
71
// @abimethod({ readonly: true })
72
72
callsub readFromGroupTransaction
73
73
itob
@@ -79,7 +79,7 @@ main_readFromGroupTransaction_route@4:
79
79
return
80
80
81
81
main_demonstrateScratchStorage_route@3:
82
- // contracts/ScratchStorage/contract.algo.ts:65
82
+ // contracts/ScratchStorage/contract.algo.ts:61
83
83
// public demonstrateScratchStorage(): boolean {
84
84
txn OnCompletion
85
85
!
@@ -99,7 +99,7 @@ main_demonstrateScratchStorage_route@3:
99
99
return
100
100
101
101
main_bare_routing@8:
102
- // contracts/ScratchStorage/contract.algo.ts:26-27
102
+ // contracts/ScratchStorage/contract.algo.ts:27-28
103
103
// @contract({ scratchSlots: [0, 1, 2, { from: 10, to: 20 }] }) // This reserves slots 0, 1, 2 and slots 10-20
104
104
// export default class ScratchStorage extends Contract {
105
105
txn OnCompletion
@@ -129,52 +129,52 @@ demonstrateScratchStorage:
129
129
// Scratch.store(15, Uint64(999))
130
130
pushint 999 // 999
131
131
store 15
132
- // contracts/ScratchStorage/contract.algo.ts:49
132
+ // contracts/ScratchStorage/contract.algo.ts:47
133
133
// const value2 = Scratch.loadUint64(2)
134
134
load 2
135
- // contracts/ScratchStorage/contract.algo.ts:50
135
+ // contracts/ScratchStorage/contract.algo.ts:48
136
136
// const value3 = Scratch.loadUint64(15)
137
137
load 15
138
- // contracts/ScratchStorage/contract.algo.ts:51
138
+ // contracts/ScratchStorage/contract.algo.ts:49
139
139
// const bytesValue = Scratch.loadBytes(1)
140
140
load 1
141
- // contracts/ScratchStorage/contract.algo.ts:48
141
+ // contracts/ScratchStorage/contract.algo.ts:46
142
142
// const value1 = Scratch.loadUint64(0)
143
143
load 0
144
- // contracts/ScratchStorage/contract.algo.ts:53
144
+ // contracts/ScratchStorage/contract.algo.ts:51
145
145
// assert(value1 === 42, 'Value in slot 0 should be 42')
146
146
intc_2 // 42
147
147
==
148
148
assert // Value in slot 0 should be 42
149
- // contracts/ScratchStorage/contract.algo.ts:54
149
+ // contracts/ScratchStorage/contract.algo.ts:52
150
150
// assert(bytesValue === Bytes('Hello, Algorand!'), 'Value in slot 1 should be "Hello, Algorand!"')
151
151
bytec_1 // "Hello, Algorand!"
152
152
==
153
153
assert // Value in slot 1 should be "Hello, Algorand!"
154
- // contracts/ScratchStorage/contract.algo.ts:55
154
+ // contracts/ScratchStorage/contract.algo.ts:53
155
155
// assert(value2 === 100, 'Value in slot 2 should be 100')
156
156
swap
157
157
intc_3 // 100
158
158
==
159
159
assert // Value in slot 2 should be 100
160
- // contracts/ScratchStorage/contract.algo.ts:56
160
+ // contracts/ScratchStorage/contract.algo.ts:54
161
161
// assert(value3 === 999, 'Value in slot 15 should be 999')
162
162
pushint 999 // 999
163
163
==
164
164
assert // Value in slot 15 should be 999
165
- // contracts/ScratchStorage/contract.algo.ts:69
165
+ // contracts/ScratchStorage/contract.algo.ts:65
166
166
// return true
167
167
intc_0 // 1
168
168
retsub
169
169
170
170
171
171
// contracts/ScratchStorage/contract.algo.ts::ScratchStorage.readFromGroupTransaction(groupIndex: uint64, scratchSlot: uint64) -> uint64:
172
172
readFromGroupTransaction:
173
- // contracts/ScratchStorage/contract.algo.ts:80-81
173
+ // contracts/ScratchStorage/contract.algo.ts:74-75
174
174
// @abimethod({ readonly: true })
175
175
// public readFromGroupTransaction(groupIndex: uint64, scratchSlot: uint64): uint64 {
176
176
proto 2 1
177
- // contracts/ScratchStorage/contract.algo.ts:82
177
+ // contracts/ScratchStorage/contract.algo.ts:76
178
178
// return gloadUint64(groupIndex, scratchSlot)
179
179
frame_dig -2
180
180
frame_dig -1
@@ -184,11 +184,11 @@ readFromGroupTransaction:
184
184
185
185
// contracts/ScratchStorage/contract.algo.ts::ScratchStorage.readBytesFromGroupTransaction(groupIndex: uint64, scratchSlot: uint64) -> bytes:
186
186
readBytesFromGroupTransaction:
187
- // contracts/ScratchStorage/contract.algo.ts:93-94
187
+ // contracts/ScratchStorage/contract.algo.ts:85-86
188
188
// @abimethod({ readonly: true })
189
189
// public readBytesFromGroupTransaction(groupIndex: uint64, scratchSlot: uint64): bytes {
190
190
proto 2 1
191
- // contracts/ScratchStorage/contract.algo.ts:95
191
+ // contracts/ScratchStorage/contract.algo.ts:87
192
192
// return gloadBytes(groupIndex, scratchSlot)
193
193
frame_dig -2
194
194
frame_dig -1
0 commit comments