Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution Solved #81

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ smart_contracts.counter.contract.Counter.approval_program:
callsub __init__

main_entrypoint@2:
// smart_contracts/counter/contract.py:24
// smart_contracts/counter/contract.py:3
// class Counter(ARC4Contract):
txn NumAppArgs
bz main_bare_routing@7
Expand All @@ -16,7 +16,7 @@ main_entrypoint@2:
err // reject transaction

main_increment_route@4:
// smart_contracts/counter/contract.py:35
// smart_contracts/counter/contract.py:15
// @arc4.abimethod()
txn OnCompletion
!
Expand All @@ -32,14 +32,14 @@ main_increment_route@4:
return

main_bare_routing@7:
// smart_contracts/counter/contract.py:24
// smart_contracts/counter/contract.py:3
// class Counter(ARC4Contract):
txn OnCompletion
switch main_create@8 main_opt_in@9
err // reject transaction

main_create@8:
// smart_contracts/counter/contract.py:24
// smart_contracts/counter/contract.py:3
// class Counter(ARC4Contract):
txn ApplicationID
!
Expand All @@ -48,11 +48,11 @@ main_create@8:
return

main_opt_in@9:
// smart_contracts/counter/contract.py:30
// smart_contracts/counter/contract.py:11
// @arc4.baremethod(allow_actions=["OptIn"])
txn ApplicationID
assert // is not creating
// smart_contracts/counter/contract.py:30-31
// smart_contracts/counter/contract.py:11-12
// @arc4.baremethod(allow_actions=["OptIn"])
// def opt_in(self) -> None:
callsub opt_in
Expand All @@ -62,23 +62,23 @@ main_opt_in@9:

// smart_contracts.counter.contract.Counter.increment() -> bytes:
increment:
// smart_contracts/counter/contract.py:35-36
// smart_contracts/counter/contract.py:15-16
// @arc4.abimethod()
// def increment(self) -> arc4.UInt64:
proto 0 1
// smart_contracts/counter/contract.py:37
// smart_contracts/counter/contract.py:17
// assert Txn.sender.is_opted_in(
txn Sender
// smart_contracts/counter/contract.py:38
// smart_contracts/counter/contract.py:18
// Global.current_application_id
global CurrentApplicationID
// smart_contracts/counter/contract.py:37-39
// smart_contracts/counter/contract.py:17-19
// assert Txn.sender.is_opted_in(
// Global.current_application_id
// ), "Sender must opt-in to the contract"
app_opted_in
assert // Sender must opt-in to the contract
// smart_contracts/counter/contract.py:40
// smart_contracts/counter/contract.py:20
// self.count[Txn.sender] += 1
txn Sender
int 0
Expand All @@ -91,7 +91,7 @@ increment:
byte "count"
uncover 2
app_local_put
// smart_contracts/counter/contract.py:41
// smart_contracts/counter/contract.py:21
// return arc4.UInt64(self.count[Txn.sender])
txn Sender
int 0
Expand All @@ -104,38 +104,38 @@ increment:

// smart_contracts.counter.contract.Counter.opt_in() -> void:
opt_in:
// smart_contracts/counter/contract.py:30-31
// smart_contracts/counter/contract.py:11-12
// @arc4.baremethod(allow_actions=["OptIn"])
// def opt_in(self) -> None:
proto 0 0
// smart_contracts/counter/contract.py:32
// smart_contracts/counter/contract.py:13
// self.count[Txn.sender] = UInt64(0)
txn Sender
byte "count"
int 0
app_local_put
// smart_contracts/counter/contract.py:33
// self.counter.value += 1
// smart_contracts/counter/contract.py:14
// self.counters.value += 1
int 0
byte "counter"
byte "counters"
app_global_get_ex
assert // check counter exists
assert // check counters exists
int 1
+
byte "counter"
byte "counters"
swap
app_global_put
retsub


// smart_contracts.counter.contract.Counter.__init__() -> void:
__init__:
// smart_contracts/counter/contract.py:26
// smart_contracts/counter/contract.py:7
// def __init__(self) -> None:
proto 0 0
// smart_contracts/counter/contract.py:28
// self.counter = GlobalState(UInt64(0))
byte "counter"
// smart_contracts/counter/contract.py:9
// self.counters = GlobalState(UInt64(0))
byte "counters"
int 0
app_global_put
retsub
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
}
},
"source": {
"approval": "I3ByYWdtYSB2ZXJzaW9uIDEwCgpzbWFydF9jb250cmFjdHMuY291bnRlci5jb250cmFjdC5Db3VudGVyLmFwcHJvdmFsX3Byb2dyYW06CiAgICB0eG4gQXBwbGljYXRpb25JRAogICAgYm56IG1haW5fZW50cnlwb2ludEAyCiAgICBjYWxsc3ViIF9faW5pdF9fCgptYWluX2VudHJ5cG9pbnRAMjoKICAgIC8vIHNtYXJ0X2NvbnRyYWN0cy9jb3VudGVyL2NvbnRyYWN0LnB5OjI0CiAgICAvLyBjbGFzcyBDb3VudGVyKEFSQzRDb250cmFjdCk6CiAgICB0eG4gTnVtQXBwQXJncwogICAgYnogbWFpbl9iYXJlX3JvdXRpbmdANwogICAgbWV0aG9kICJpbmNyZW1lbnQoKXVpbnQ2NCIKICAgIHR4bmEgQXBwbGljYXRpb25BcmdzIDAKICAgIG1hdGNoIG1haW5faW5jcmVtZW50X3JvdXRlQDQKICAgIGVyciAvLyByZWplY3QgdHJhbnNhY3Rpb24KCm1haW5faW5jcmVtZW50X3JvdXRlQDQ6CiAgICAvLyBzbWFydF9jb250cmFjdHMvY291bnRlci9jb250cmFjdC5weTozNQogICAgLy8gQGFyYzQuYWJpbWV0aG9kKCkKICAgIHR4biBPbkNvbXBsZXRpb24KICAgICEKICAgIGFzc2VydCAvLyBPbkNvbXBsZXRpb24gaXMgTm9PcAogICAgdHhuIEFwcGxpY2F0aW9uSUQKICAgIGFzc2VydCAvLyBpcyBub3QgY3JlYXRpbmcKICAgIGNhbGxzdWIgaW5jcmVtZW50CiAgICBieXRlIDB4MTUxZjdjNzUKICAgIHN3YXAKICAgIGNvbmNhdAogICAgbG9nCiAgICBpbnQgMQogICAgcmV0dXJuCgptYWluX2JhcmVfcm91dGluZ0A3OgogICAgLy8gc21hcnRfY29udHJhY3RzL2NvdW50ZXIvY29udHJhY3QucHk6MjQKICAgIC8vIGNsYXNzIENvdW50ZXIoQVJDNENvbnRyYWN0KToKICAgIHR4biBPbkNvbXBsZXRpb24KICAg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hY3RzL2NvdW50ZXIvY29udHJhY3QucHk6MjgKICAgIC8vIHNlbGYuY291bnRlciA9IEdsb2JhbFN0YXRlKFVJbnQ2NCgwKSkKICAgIGJ5dGUgImNvdW50ZXIiCiAgICBpbnQgMAogICAgYXBwX2dsb2JhbF9wdXQKICAgIHJldHN1Ygo=",
"clear": "I3ByYWdtYSB2ZXJzaW9uIDEwCgpzbWFydF9jb250cmFjdHMuY291bnRlci5jb250cmFjdC5Db3VudGVyLmNsZWFyX3N0YXRlX3Byb2dyYW06CiAgICAvLyBzbWFydF9jb250cmFjdHMvY291bnRlci9jb250cmFjdC5weToyNAogICAgLy8gY2xhc3MgQ291bnRlcihBUkM0Q29udHJhY3QpOgogICAgaW50IDEKICAgIHJldHVybgo="
"approval": "I3ByYWdtYSB2ZXJzaW9uIDEwCgpzbWFydF9jb250cmFjdHMuY291bnRlci5jb250cmFjdC5Db3VudGVyLmFwcHJvdmFsX3Byb2dyYW06CiAgICB0eG4gQXBwbGljYXRpb25JRAogICAgYm56IG1haW5fZW50cnlwb2ludEAyCiAgICBjYWxsc3ViIF9faW5pdF9fCgptYWluX2VudHJ5cG9pbnRAMjoKICAgIC8vIHNtYXJ0X2NvbnRyYWN0cy9jb3VudGVyL2NvbnRyYWN0LnB5OjMKICAgIC8vIGNsYXNzIENvdW50ZXIoQVJDNENvbnRyYWN0KToKICAgIHR4biBOdW1BcHBBcmdzCiAgICBieiBtYWluX2JhcmVfcm91dGluZ0A3CiAgICBtZXRob2QgImluY3JlbWVudCgpdWludDY0IgogICAgdHhuYSBBcHBsaWNhdGlvbkFyZ3MgMAogICAgbWF0Y2ggbWFpbl9pbmNyZW1lbnRfcm91dGVANAogICAgZXJyIC8vIHJlamVjdCB0cmFuc2FjdGlvbgoKbWFpbl9pbmNyZW1lbnRfcm91dGVANDoKICAgIC8vIHNtYXJ0X2NvbnRyYWN0cy9jb3VudGVyL2NvbnRyYWN0LnB5OjE1CiAgICAvLyBAYXJjNC5hYmltZXRob2QoK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ICAgIGJ5dGUgImNvdW50IgogICAgYXBwX2xvY2FsX2dldF9leAogICAgYXNzZXJ0IC8vIGNoZWNrIGNvdW50IGV4aXN0cyBmb3IgYWNjb3VudAogICAgaW50IDEKICAgICsKICAgIHR4biBTZW5kZXIKICAgIGJ5dGUgImNvdW50IgogICAgdW5jb3ZlciAyCiAgICBhcHBfbG9jYWxfcHV0CiAgICAvLyBzbWFydF9jb250cmFjdHMvY291bnRlci9jb250cmFjdC5weToyMQogICAgLy8gcmV0dXJuIGFyYzQuVUludDY0KHNlbGYuY291bnRbVHhuLnNlbmRlcl0pCiAgICB0eG4gU2VuZGVyCiAgICBpbnQgMAogICAgYnl0ZSAiY291bnQiCiAgICBhcHBfbG9jYWxfZ2V0X2V4CiAgICBhc3NlcnQgLy8gY2hlY2sgY291bnQgZXhpc3RzIGZvciBhY2NvdW50CiAgICBpdG9iCiAgICByZXRzdWIKCgovLyBzbWFydF9jb250cmFjdHMuY291bnRlci5jb250cmFjdC5Db3VudGVyLm9wdF9pbigpIC0+IHZvaWQ6Cm9wdF9pbjoKICAgIC8vIHNtYXJ0X2NvbnRyYWN0cy9jb3VudGVyL2NvbnRyYWN0LnB5OjExLTEyCiAgICAvLyBAYXJjNC5iYXJlbWV0aG9kKGFsbG93X2FjdGlvbnM9WyJPcHRJbiJdKQogICAgLy8gZGVmIG9wdF9pbihzZWxmKSAtPiBOb25lOgogICAgcHJvdG8gMCAwCiAgICAvLyBzbWFydF9jb250cmFjdHMvY291bnRlci9jb250cmFjdC5weToxMwogICAgLy8gc2VsZi5jb3VudFtUeG4uc2VuZGVyXSA9IFVJbnQ2NCgwKQogICAgdHhuIFNlbmRlcgogICAgYnl0ZSAiY291bnQiCiAgICBpbnQgMAogICAgYXBwX2xvY2FsX3B1dAogICAgLy8gc21hcnRfY29udHJhY3RzL2NvdW50ZXIvY29udHJhY3QucHk6MTQKICAgIC8vIHNlbGYuY291bnRlcnMudmFsdWUgKz0gMQogICAgaW50IDAKICAgIGJ5dGUgImNvdW50ZXJzIgogICAgYXBwX2dsb2JhbF9nZXRfZXgKICAgIGFzc2VydCAvLyBjaGVjayBjb3VudGVycyBleGlzdHMKICAgIGludCAxCiAgICArCiAgICBieXRlICJjb3VudGVycyIKICAgIHN3YXAKICAgIGFwcF9nbG9iYWxfcHV0CiAgICByZXRzdWIKCgovLyBzbWFydF9jb250cmFjdHMuY291bnRlci5jb250cmFjdC5Db3VudGVyLl9faW5pdF9fKCkgLT4gdm9pZDoKX19pbml0X186CiAgICAvLyBzbWFydF9jb250cmFjdHMvY291bnRlci9jb250cmFjdC5weTo3CiAgICAvLyBkZWYgX19pbml0X18oc2VsZikgLT4gTm9uZToKICAgIHByb3RvIDAgMAogICAgLy8gc21hcnRfY29udHJhY3RzL2NvdW50ZXIvY29udHJhY3QucHk6OQogICAgLy8gc2VsZi5jb3VudGVycyA9IEdsb2JhbFN0YXRlKFVJbnQ2NCgwKSkKICAgIGJ5dGUgImNvdW50ZXJzIgogICAgaW50IDAKICAgIGFwcF9nbG9iYWxfcHV0CiAgICByZXRzdWIK",
"clear": "I3ByYWdtYSB2ZXJzaW9uIDEwCgpzbWFydF9jb250cmFjdHMuY291bnRlci5jb250cmFjdC5Db3VudGVyLmNsZWFyX3N0YXRlX3Byb2dyYW06CiAgICAvLyBzbWFydF9jb250cmFjdHMvY291bnRlci9jb250cmFjdC5weTozCiAgICAvLyBjbGFzcyBDb3VudGVyKEFSQzRDb250cmFjdCk6CiAgICBpbnQgMQogICAgcmV0dXJuCg=="
},
"state": {
"global": {
Expand All @@ -23,9 +23,9 @@
"schema": {
"global": {
"declared": {
"counter": {
"counters": {
"type": "uint64",
"key": "counter"
"key": "counters"
}
},
"reserved": {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma version 10

smart_contracts.counter.contract.Counter.clear_state_program:
// smart_contracts/counter/contract.py:24
// smart_contracts/counter/contract.py:3
// class Counter(ARC4Contract):
int 1
return
Loading