Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
update template, setup UI
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-p committed Aug 2, 2023
1 parent 39675f5 commit 0a7c8e2
Show file tree
Hide file tree
Showing 13 changed files with 999 additions and 290 deletions.
4 changes: 2 additions & 2 deletions intermediate-en/session_3/dao/.copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: 0.2.1-22-gd5c2296
_src_path: https://github.com/algorandfoundation/algokit-fullstack-template
_commit: 0.3.0
_src_path: gh:algorandfoundation/algokit-fullstack-template
author_email: your@email.tld
author_name: Your-Name
cloud_provider: none
Expand Down
2 changes: 1 addition & 1 deletion intermediate-en/session_3/dao/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ This project uses [GitHub Actions](https://docs.github.com/en/actions/learn-gith

For pushes to `main` branch, after the above checks pass, the following deployment actions are performed:
- The smart contract(s) are deployed to TestNet using [AlgoNode](https://algonode.io).
- The frontend application is deployed to a provider of your choice (Netflify, Vercel, etc.). See [frontend README](frontend/README.md) for more information.
- The frontend application is deployed to a provider of your choice (Netlify, Vercel, etc.). See [frontend README](frontend/README.md) for more information.

> Please note deployment of smart contracts is done via `algokit deploy` command which can be invoked both via CI as seen on this project, or locally. For more information on how to use `algokit deploy` please see [AlgoKit documentation](https://github.com/algorandfoundation/algokit-cli/blob/main/docs/features/deploy.md).
Expand Down
4 changes: 2 additions & 2 deletions intermediate-en/session_3/dao/backend/.copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: 1.6.0-38-gd30492e
_src_path: https://github.com/algorandfoundation/algokit-beaker-default-template
_commit: 1.7.0
_src_path: gh:algorandfoundation/algokit-beaker-default-template
algod_port: 4001
algod_server: http://localhost
algod_token: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"hints": {
"create()void": {
"call_config": {
"no_op": "CREATE"
}
},
"add_proposal((string,string,string,byte[32]))void": {
"structs": {
"proposal": {
Expand All @@ -15,15 +10,15 @@
"string"
],
[
"unit_name",
"url",
"string"
],
[
"url",
"unit_name",
"string"
],
[
"hash",
"metadata_hash",
"byte[32]"
]
]
Expand All @@ -33,7 +28,7 @@
"no_op": "CALL"
}
},
"vote(address)void": {
"vote(uint64)void": {
"call_config": {
"no_op": "CALL"
}
Expand All @@ -45,13 +40,13 @@
}
},
"source": {
"approval": "I3ByYWdtYSB2ZXJzaW9uIDgKaW50Y2Jsb2NrIDAgMSA0IDIKYnl0ZWNibG9jayAweDc3Njk2ZTZlNjk2ZTY3NWY3MDcyNmY3MDZmNzM2MTZjIDB4CnR4bmEgQXBwbGljYXRpb25BcmdzIDAKcHVzaGJ5dGVzIDB4NGM1YzYxYmEgLy8gImNyZWF0ZSgpdm9pZCIKPT0KYm56IG1haW5fbDgKdHhuYSBBcHBsaWNhdGlvbkFyZ3MgMApwdXNoYnl0ZXMgMHhlZmE4YjQ0YiAvLyAiYWRkX3Byb3Bvc2FsKChzdHJpbmcsc3RyaW5nLHN0cmluZyxieXRlWzMyXSkpdm9pZCIKPT0KYm56IG1haW5fbDcKdHhuYSBBcHBsaWNhdGlvbkFyZ3MgMApwdXNoYnl0ZXMgMHg2MjhjZTMyZCAvLyAidm90ZShhZGRyZXNzKXZvaWQiCj09CmJueiBtYWluX2w2CnR4bmEgQXBwbGljYXRpb25BcmdzIDAKcHVzaGJ5dGVzIDB4NTU4OGRjYjQgLy8gIm1pbnQoKXZvaWQiCj09CmJueiBtYWluX2w1CmVycgptYWluX2w1Ogp0eG4gT25Db21wbGV0aW9uCmludGNfMCAvLyBOb09wCj09CnR4biBBcHBsaWNhdGlvbklECmludGNfMCAvLyAwCiE9CiYmCmFzc2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ROYW1lCmZyYW1lX2RpZyA1Cml0eG5fZmllbGQgQ29uZmlnQXNzZXRNZXRhZGF0YUhhc2gKaXR4bl9zdWJtaXQKcmV0c3ViCgovLyBhZGRfcHJvcG9zYWxfY2FzdGVyCmFkZHByb3Bvc2FsY2FzdGVyXzQ6CnByb3RvIDAgMApieXRlYyA0IC8vICIiCnR4bmEgQXBwbGljYXRpb25BcmdzIDEKZnJhbWVfYnVyeSAwCmZyYW1lX2RpZyAwCmNhbGxzdWIgYWRkcHJvcG9zYWxfMQpyZXRzdWIKCi8vIHZvdGVfY2FzdGVyCnZvdGVjYXN0ZXJfNToKcHJvdG8gMCAwCmludGNfMCAvLyAwCnR4bmEgQXBwbGljYXRpb25BcmdzIDEKYnRvaQpmcmFtZV9idXJ5IDAKZnJhbWVfZGlnIDAKY2FsbHN1YiB2b3RlXzIKcmV0c3ViCgovLyBtaW50X2Nhc3RlcgptaW50Y2FzdGVyXzY6CnByb3RvIDAgMApjYWxsc3ViIG1pbnRfMwpyZXRzdWI=",
"clear": "I3ByYWdtYSB2ZXJzaW9uIDgKcHVzaGludCAwIC8vIDAKcmV0dXJu"
},
"state": {
"global": {
"num_byte_slices": 1,
"num_uints": 1
"num_byte_slices": 0,
"num_uints": 2
},
"local": {
"num_byte_slices": 0,
Expand All @@ -67,7 +62,7 @@
"descr": ""
},
"winning_proposal": {
"type": "bytes",
"type": "uint64",
"key": "winning_proposal",
"descr": ""
}
Expand All @@ -80,15 +75,8 @@
}
},
"contract": {
"name": "dao",
"name": "DAO",
"methods": [
{
"name": "create",
"args": [],
"returns": {
"type": "void"
}
},
{
"name": "add_proposal",
"args": [
Expand All @@ -105,8 +93,8 @@
"name": "vote",
"args": [
{
"type": "address",
"name": "proposer"
"type": "uint64",
"name": "proposal_id"
}
],
"returns": {
Expand All @@ -123,5 +111,7 @@
],
"networks": {}
},
"bare_call_config": {}
"bare_call_config": {
"no_op": "CREATE"
}
}
Loading

0 comments on commit 0a7c8e2

Please sign in to comment.