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

solved -4 #56

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
@@ -0,0 +1,198 @@
#pragma version 10

smart_contracts.verify_medical_ai.contract.VerifyMedicalAI.approval_program:
// smart_contracts/verify_medical_ai/contract.py:13
// class VerifyMedicalAI(ARC4Contract):
txn NumAppArgs
bz main_bare_routing@6
method "record_ai_info(string,string,string,uint64,bool,bool)void"
method "get_ai_info()(string,string,string,uint64,bool,bool)"
txna ApplicationArgs 0
match main_record_ai_info_route@2 main_get_ai_info_route@3
err // reject transaction

main_record_ai_info_route@2:
// smart_contracts/verify_medical_ai/contract.py:28
// @arc4.abimethod()
txn OnCompletion
!
assert // OnCompletion is NoOp
txn ApplicationID
assert // is not creating
// smart_contracts/verify_medical_ai/contract.py:13
// class VerifyMedicalAI(ARC4Contract):
txna ApplicationArgs 1
txna ApplicationArgs 2
txna ApplicationArgs 3
txna ApplicationArgs 4
txna ApplicationArgs 5
txna ApplicationArgs 6
// smart_contracts/verify_medical_ai/contract.py:28
// @arc4.abimethod()
callsub record_ai_info
int 1
return

main_get_ai_info_route@3:
// smart_contracts/verify_medical_ai/contract.py:47
// @arc4.abimethod(readonly=True)
txn OnCompletion
!
assert // OnCompletion is NoOp
txn ApplicationID
assert // is not creating
callsub get_ai_info
byte 0x151f7c75
swap
concat
log
int 1
return

main_bare_routing@6:
// smart_contracts/verify_medical_ai/contract.py:13
// class VerifyMedicalAI(ARC4Contract):
txn OnCompletion
switch main_create@7 main_opt_in@8
err // reject transaction

main_create@7:
// smart_contracts/verify_medical_ai/contract.py:13
// class VerifyMedicalAI(ARC4Contract):
txn ApplicationID
!
assert // is creating
int 1
return

main_opt_in@8:
// smart_contracts/verify_medical_ai/contract.py:17
// @arc4.baremethod(allow_actions=["OptIn"])
txn ApplicationID
assert // is not creating
// smart_contracts/verify_medical_ai/contract.py:17-18
// @arc4.baremethod(allow_actions=["OptIn"])
// def opt_in(self) -> None:
callsub opt_in
int 1
return


// smart_contracts.verify_medical_ai.contract.VerifyMedicalAI.record_ai_info(name: bytes, used_model: bytes, medical_degree: bytes, mcat_score: bytes, residency_training: bytes, medical_license: bytes) -> void:
record_ai_info:
// smart_contracts/verify_medical_ai/contract.py:28-37
// @arc4.abimethod()
// def record_ai_info(
// self,
// name: arc4.String,
// used_model:arc4.String,
// medical_degree:arc4.String,
// mcat_score: arc4.UInt64,
// residency_training: arc4.Bool,
// medical_license: arc4.Bool,
// ) -> None:
proto 6 0
// smart_contracts/verify_medical_ai/contract.py:38-45
// self.ai_info[Txn.sender] = AiInfo(
// name=name,
// used_model=used_model,
// medical_degree=medical_degree,
// mcat_score=mcat_score,
// residency_training=residency_training,
// medical_license=medical_license,
// )
frame_dig -6
len
int 15
+
dup
itob
extract 6 2
byte 0x000f
swap
concat
swap
frame_dig -5
len
+
itob
extract 6 2
concat
frame_dig -3
concat
frame_dig -2
concat
frame_dig -1
int 0
getbit
int 113
swap
setbit
frame_dig -6
concat
frame_dig -5
concat
frame_dig -4
concat
// smart_contracts/verify_medical_ai/contract.py:38
// self.ai_info[Txn.sender] = AiInfo(
txn Sender
byte "ai_info"
// smart_contracts/verify_medical_ai/contract.py:38-45
// self.ai_info[Txn.sender] = AiInfo(
// name=name,
// used_model=used_model,
// medical_degree=medical_degree,
// mcat_score=mcat_score,
// residency_training=residency_training,
// medical_license=medical_license,
// )
uncover 2
app_local_put
retsub


// smart_contracts.verify_medical_ai.contract.VerifyMedicalAI.get_ai_info() -> bytes:
get_ai_info:
// smart_contracts/verify_medical_ai/contract.py:47-48
// @arc4.abimethod(readonly=True)
// def get_ai_info(self) -> AiInfo:
proto 0 1
// smart_contracts/verify_medical_ai/contract.py:49
// assert op.app_opted_in(Txn.sender, Global.current_application_id)
txn Sender
global CurrentApplicationID
app_opted_in
assert
// smart_contracts/verify_medical_ai/contract.py:50
// return self.ai_info[Txn.sender]
txn Sender
int 0
byte "ai_info"
app_local_get_ex
assert // check ai_info exists for account
retsub


// smart_contracts.verify_medical_ai.contract.VerifyMedicalAI.opt_in() -> void:
opt_in:
// smart_contracts/verify_medical_ai/contract.py:17-18
// @arc4.baremethod(allow_actions=["OptIn"])
// def opt_in(self) -> None:
proto 0 0
// smart_contracts/verify_medical_ai/contract.py:19
// self.ai_info[Txn.sender] = AiInfo(
txn Sender
byte "ai_info"
// smart_contracts/verify_medical_ai/contract.py:19-26
// self.ai_info[Txn.sender] = AiInfo(
// name=arc4.String(""),
// used_model=arc4.String(""),
// medical_degree=arc4.String(""),
// mcat_score=arc4.UInt64(0),
// residency_training=arc4.Bool(False),
// medical_license=arc4.Bool(False),
// )
byte 0x000f00110013000000000000000000000000000000
app_local_put
retsub
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"hints": {
"record_ai_info(string,string,string,uint64,bool,bool)void": {
"call_config": {
"no_op": "CALL"
}
},
"get_ai_info()(string,string,string,uint64,bool,bool)": {
"read_only": true,
"call_config": {
"no_op": "CALL"
},
"structs": {
"output": {
"name": "AiInfo",
"elements": [
[
"name",
"string"
],
[
"used_model",
"string"
],
[
"medical_degree",
"string"
],
[
"mcat_score",
"uint64"
],
[
"residency_training",
"bool"
],
[
"medical_license",
"bool"
]
]
}
}
}
},
"source": {
"approval": "I3ByYWdtYSB2ZXJzaW9uIDEwCgpzbWFydF9jb250cmFjdHMudmVyaWZ5X21lZGljYWxfYWkuY29udHJhY3QuVmVyaWZ5TWVkaWNhbEFJLmFwcHJvdmFsX3Byb2dyYW06CiAgICAvLyBzbWFydF9jb250cmFjdHMvdmVyaWZ5X21lZGljYWxfYWkvY29udHJhY3QucHk6MTMKICAg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vbnRyYWN0cy92ZXJpZnlfbWVkaWNhbF9haS9jb250cmFjdC5weToxOS0yNgogICAgLy8gc2VsZi5haV9pbmZvW1R4bi5zZW5kZXJdID0gQWlJbmZvKAogICAgLy8gICAgIG5hbWU9YXJjNC5TdHJpbmcoIiIpLAogICAgLy8gICAgIHVzZWRfbW9kZWw9YXJjNC5TdHJpbmcoIiIpLAogICAgLy8gICAgIG1lZGljYWxfZGVncmVlPWFyYzQuU3RyaW5nKCIiKSwKICAgIC8vICAgICBtY2F0X3Njb3JlPWFyYzQuVUludDY0KDApLAogICAgLy8gICAgIHJlc2lkZW5jeV90cmFpbmluZz1hcmM0LkJvb2woRmFsc2UpLAogICAgLy8gICAgIG1lZGljYWxfbGljZW5zZT1hcmM0LkJvb2woRmFsc2UpLAogICAgLy8gKQogICAgYnl0ZSAweDAwMGYwMDExMDAxMzAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAogICAgYXBwX2xvY2FsX3B1dAogICAgcmV0c3ViCg==",
"clear": "I3ByYWdtYSB2ZXJzaW9uIDEwCgpzbWFydF9jb250cmFjdHMudmVyaWZ5X21lZGljYWxfYWkuY29udHJhY3QuVmVyaWZ5TWVkaWNhbEFJLmNsZWFyX3N0YXRlX3Byb2dyYW06CiAgICAvLyBzbWFydF9jb250cmFjdHMvdmVyaWZ5X21lZGljYWxfYWkvY29udHJhY3QucHk6MTMKICAgIC8vIGNsYXNzIFZlcmlmeU1lZGljYWxBSShBUkM0Q29udHJhY3QpOgogICAgaW50IDEKICAgIHJldHVybgo="
},
"state": {
"global": {
"num_byte_slices": 0,
"num_uints": 0
},
"local": {
"num_byte_slices": 1,
"num_uints": 0
}
},
"schema": {
"global": {
"declared": {},
"reserved": {}
},
"local": {
"declared": {
"ai_info": {
"type": "bytes",
"key": "ai_info"
}
},
"reserved": {}
}
},
"contract": {
"name": "VerifyMedicalAI",
"methods": [
{
"name": "record_ai_info",
"args": [
{
"type": "string",
"name": "name"
},
{
"type": "string",
"name": "used_model"
},
{
"type": "string",
"name": "medical_degree"
},
{
"type": "uint64",
"name": "mcat_score"
},
{
"type": "bool",
"name": "residency_training"
},
{
"type": "bool",
"name": "medical_license"
}
],
"returns": {
"type": "void"
}
},
{
"name": "get_ai_info",
"args": [],
"returns": {
"type": "(string,string,string,uint64,bool,bool)"
}
}
],
"networks": {}
},
"bare_call_config": {
"opt_in": "CALL",
"no_op": "CREATE"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#pragma version 10

smart_contracts.verify_medical_ai.contract.VerifyMedicalAI.clear_state_program:
// smart_contracts/verify_medical_ai/contract.py:13
// class VerifyMedicalAI(ARC4Contract):
int 1
return
Loading